Sha256: f16e4890030d972d636d88fa6da6123d49d635a3a21f64f3ef56c51c79233627

Contents?: true

Size: 1.62 KB

Versions: 13

Compression:

Stored size: 1.62 KB

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class CharacterOrder < Base
        def as_json
          {
            duration: duration,
            escrow: escrow,
            is_buy_order: is_buy_order,
            is_corporation: is_corporation,
            issued: issued,
            location_id: location_id,
            min_volume: min_volume,
            order_id: order_id,
            price: price,
            range: range,
            region_id: region_id,
            type_id: type_id,
            volume_remain: volume_remain,
            volume_total: volume_total
          }
        end

        def duration
          options['duration']
        end

        def escrow
          options['escrow']
        end

        def is_buy_order
          options['is_buy_order']
        end

        def is_corporation
          options['is_corporation']
        end

        def issued
          issued = options['issued']

          parse_datetime_with_timezone(issued) if issued
        end

        def location_id
          options['location_id']
        end

        def min_volume
          options['min_volume']
        end

        def order_id
          options['order_id']
        end

        def price
          options['price']
        end

        def range
          options['range']
        end

        def region_id
          options['region_id']
        end

        def type_id
          options['type_id']
        end

        def volume_remain
          options['volume_remain']
        end

        def volume_total
          options['volume_total']
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
eve_online-0.29.0 lib/eve_online/esi/models/character_order.rb
eve_online-0.28.0 lib/eve_online/esi/models/character_order.rb
eve_online-0.27.0 lib/eve_online/esi/models/character_order.rb
eve_online-0.26.0 lib/eve_online/esi/models/character_order.rb
eve_online-0.25.0 lib/eve_online/esi/models/character_order.rb
eve_online-0.24.0 lib/eve_online/esi/models/character_order.rb
eve_online-0.23.0 lib/eve_online/esi/models/character_order.rb
eve_online-0.22.0 lib/eve_online/esi/models/character_order.rb
eve_online-0.21.0 lib/eve_online/esi/models/character_order.rb
eve_online-0.20.0 lib/eve_online/esi/models/character_order.rb
eve_online-0.19.0 lib/eve_online/esi/models/character_order.rb
eve_online-0.18.0 lib/eve_online/esi/models/character_order.rb
eve_online-0.17.0 lib/eve_online/esi/models/character_order.rb