Sha256: 6d4974e01132e20203262d5803771873349e84742d3b10e7d1faaeace277dde8

Contents?: true

Size: 1.01 KB

Versions: 16

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

16 entries across 16 versions & 1 rubygems

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