Sha256: 190d672a548211e17d85cb50f9e261062eaacc7b3b5549c081807979236db1e2

Contents?: true

Size: 1.14 KB

Versions: 13

Compression:

Stored size: 1.14 KB

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class PublicContractItem < Base
        def as_json
          {
            is_blueprint_copy: is_blueprint_copy,
            is_included: is_included,
            item_id: item_id,
            material_efficiency: material_efficiency,
            quantity: quantity,
            record_id: record_id,
            runs: runs,
            time_efficiency: time_efficiency,
            type_id: type_id
          }
        end

        def is_blueprint_copy
          options["is_blueprint_copy"]
        end

        def is_included
          options["is_included"]
        end

        def item_id
          options["item_id"]
        end

        def material_efficiency
          options["material_efficiency"]
        end

        def quantity
          options["quantity"]
        end

        def record_id
          options["record_id"]
        end

        def runs
          options["runs"]
        end

        def time_efficiency
          options["time_efficiency"]
        end

        def type_id
          options["type_id"]
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
eve_online-0.46.0 lib/eve_online/esi/models/public_contract_item.rb
eve_online-0.45.0 lib/eve_online/esi/models/public_contract_item.rb
eve_online-0.44.0 lib/eve_online/esi/models/public_contract_item.rb
eve_online-0.43.0 lib/eve_online/esi/models/public_contract_item.rb
eve_online-0.42.0 lib/eve_online/esi/models/public_contract_item.rb
eve_online-0.41.0 lib/eve_online/esi/models/public_contract_item.rb
eve_online-0.40.0 lib/eve_online/esi/models/public_contract_item.rb
eve_online-0.39.0 lib/eve_online/esi/models/public_contract_item.rb
eve_online-0.38.0 lib/eve_online/esi/models/public_contract_item.rb
eve_online-0.37.0 lib/eve_online/esi/models/public_contract_item.rb
eve_online-0.36.0 lib/eve_online/esi/models/public_contract_item.rb
eve_online-0.35.1 lib/eve_online/esi/models/public_contract_item.rb
eve_online-0.35.0 lib/eve_online/esi/models/public_contract_item.rb