Sha256: 1df444660a0799f573db062d5edcc7bb97d429d05cc44f69934cbe6acdcb32bd

Contents?: true

Size: 1008 Bytes

Versions: 2

Compression:

Stored size: 1008 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
eve_online-0.14.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.13.0 lib/eve_online/esi/models/blueprint.rb