Sha256: 4442c5c396910358d66e4a657ad14af41fca74482b88aa4ef8d78029487e7487

Contents?: true

Size: 427 Bytes

Versions: 4

Compression:

Stored size: 427 Bytes

Contents

module EveOnline
  module SDE
    module Models
      class InvName
        attr_reader :data

        def initialize(data)
          @data = data
        end

        def as_json
          {
            item_id: item_id,
            item_name: item_name
          }
        end

        def item_id
          data['itemID']
        end

        def item_name
          data['itemName']
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eve_online-0.14.0 lib/eve_online/sde/models/inv_name.rb
eve_online-0.13.0 lib/eve_online/sde/models/inv_name.rb
eve_online-0.12.0 lib/eve_online/sde/models/inv_name.rb
eve_online-0.11.0 lib/eve_online/sde/models/inv_name.rb