Sha256: 5b94717499cd11529ba79a89ff5c5c94f10d98496c7b83384fe1761315b4d1eb

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 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

2 entries across 2 versions & 1 rubygems

Version Path
eve_online-0.31.0 lib/eve_online/esi/models/blueprint.rb
eve_online-0.30.0 lib/eve_online/esi/models/blueprint.rb