americanexpress/xcode-result-bundle-processor

View on GitHub
lib/xcoderesultbundleprocessor/slf0/model/ideconsoleitem.rb

Summary

Maintainability
A
0 mins
Test Coverage
module XcodeResultBundleProcessor
  module SLF0
    module Model
      class IDEConsoleItem < KeywordStruct.new(:adaptor_type, :content, :kind, :timestamp)
        def self.deserialize(tokens)
          self.new(
              adaptor_type: tokens.shift,
              content:      tokens.shift,
              kind:         tokens.shift,
              timestamp:    tokens.shift,
          )
        end
      end
    end
  end
end