Sha256: 725c2f1912fe30835456bb673e4c7af4c6682f73fd3c2bcf6b4e4ae3cca76806

Contents?: true

Size: 774 Bytes

Versions: 9

Compression:

Stored size: 774 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class Stargate < Base
        def as_json
          {
            name: name,
            stargate_id: stargate_id,
            system_id: system_id,
            type_id: type_id
          }
        end

        def name
          options['name']
        end

        def stargate_id
          options['stargate_id']
        end

        def system_id
          options['system_id']
        end

        def type_id
          options['type_id']
        end

        def destination
          @destination ||= StargateDestination.new(options['destination'])
        end

        def position
          @position ||= Position.new(options['position'])
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
eve_online-0.29.0 lib/eve_online/esi/models/stargate.rb
eve_online-0.28.0 lib/eve_online/esi/models/stargate.rb
eve_online-0.27.0 lib/eve_online/esi/models/stargate.rb
eve_online-0.26.0 lib/eve_online/esi/models/stargate.rb
eve_online-0.25.0 lib/eve_online/esi/models/stargate.rb
eve_online-0.24.0 lib/eve_online/esi/models/stargate.rb
eve_online-0.23.0 lib/eve_online/esi/models/stargate.rb
eve_online-0.22.0 lib/eve_online/esi/models/stargate.rb
eve_online-0.20.0 lib/eve_online/esi/models/stargate.rb