Sha256: 0fd2cbfbefafd84c04e5deb7cc010cf193d8b495488cc6c9280f3566f29c22e5

Contents?: true

Size: 1.01 KB

Versions: 14

Compression:

Stored size: 1.01 KB

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class Blueprint < Base
        def as_json
          {
            item_id: item_id,
            location_flag: location_flag,
            location_id: location_id,
            material_efficiency: material_efficiency,
            quantity: quantity,
            runs: runs,
            time_efficiency: time_efficiency,
            type_id: type_id
          }
        end

        def item_id
          options['item_id']
        end

        def location_flag
          options['location_flag']
        end

        def location_id
          options['location_id']
        end

        def material_efficiency
          options['material_efficiency']
        end

        def quantity
          options['quantity']
        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

14 entries across 14 versions & 1 rubygems

Version Path
eve_online-0.29.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.28.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.27.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.26.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.25.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.24.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.23.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.22.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.21.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.20.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.19.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.18.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.17.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.15.0 lib/eve_online/esi/models/blueprint.rb