Sha256: f4f196dad0ee5ba234361c032640ac63667f2064ca395e821142639898b010a0

Contents?: true

Size: 1.51 KB

Versions: 2

Compression:

Stored size: 1.51 KB

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class Station < Base
        def as_json
          {
            max_dockable_ship_volume: max_dockable_ship_volume,
            name: name,
            office_rental_cost: office_rental_cost,
            owner: owner,
            race_id: race_id,
            reprocessing_efficiency: reprocessing_efficiency,
            reprocessing_stations_take: reprocessing_stations_take,
            services: services,
            station_id: station_id,
            system_id: system_id,
            type_id: type_id,
          }
        end

        def max_dockable_ship_volume
          options["max_dockable_ship_volume"]
        end

        def name
          options["name"]
        end

        def office_rental_cost
          options["office_rental_cost"]
        end

        def owner
          options["owner"]
        end

        def race_id
          options["race_id"]
        end

        def reprocessing_efficiency
          options["reprocessing_efficiency"]
        end

        def reprocessing_stations_take
          options["reprocessing_stations_take"]
        end

        def services
          options["services"]
        end

        def station_id
          options["station_id"]
        end

        def system_id
          options["system_id"]
        end

        def type_id
          options["type_id"]
        end

        def position
          @position ||= Position.new(options["position"])
        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/station.rb
eve_online-0.30.0 lib/eve_online/esi/models/station.rb