Sha256: 8dcc997c8f3561e7f14ee6d11e8a7c667b61bc57738e5ddfe126ac18c16ef191

Contents?: true

Size: 804 Bytes

Versions: 13

Compression:

Stored size: 804 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class MarketHistory < Base
        def as_json
          {
            average: average,
            date: date,
            highest: highest,
            lowest: lowest,
            order_count: order_count,
            volume: volume
          }
        end

        def average
          options['average']
        end

        def date
          date = options['date']

          parse_datetime_with_timezone(date) if date
        end

        def highest
          options['highest']
        end

        def lowest
          options['lowest']
        end

        def order_count
          options['order_count']
        end

        def volume
          options['volume']
        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/market_history.rb
eve_online-0.28.0 lib/eve_online/esi/models/market_history.rb
eve_online-0.27.0 lib/eve_online/esi/models/market_history.rb
eve_online-0.26.0 lib/eve_online/esi/models/market_history.rb
eve_online-0.25.0 lib/eve_online/esi/models/market_history.rb
eve_online-0.24.0 lib/eve_online/esi/models/market_history.rb
eve_online-0.23.0 lib/eve_online/esi/models/market_history.rb
eve_online-0.22.0 lib/eve_online/esi/models/market_history.rb
eve_online-0.21.0 lib/eve_online/esi/models/market_history.rb
eve_online-0.20.0 lib/eve_online/esi/models/market_history.rb
eve_online-0.19.0 lib/eve_online/esi/models/market_history.rb
eve_online-0.18.0 lib/eve_online/esi/models/market_history.rb
eve_online-0.17.0 lib/eve_online/esi/models/market_history.rb