Class: EveOnline::ESI::Models::MarketHistory

Inherits:
Base
  • Object
show all
Defined in:
lib/eve_online/esi/models/market_history.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from EveOnline::ESI::Models::Base

Instance Method Details

#as_jsonObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/eve_online/esi/models/market_history.rb', line 7

def as_json
  {
    date: date,
    order_count: order_count,
    volume: volume,
    highest: highest,
    average: average,
    lowest: lowest
  }
end

#averageObject



36
37
38
# File 'lib/eve_online/esi/models/market_history.rb', line 36

def average
  options['average']
end

#dateObject



18
19
20
21
22
# File 'lib/eve_online/esi/models/market_history.rb', line 18

def date
  date = options['date']

  parse_datetime_with_timezone(date) if date
end

#highestObject



32
33
34
# File 'lib/eve_online/esi/models/market_history.rb', line 32

def highest
  options['highest']
end

#lowestObject



40
41
42
# File 'lib/eve_online/esi/models/market_history.rb', line 40

def lowest
  options['lowest']
end

#order_countObject



24
25
26
# File 'lib/eve_online/esi/models/market_history.rb', line 24

def order_count
  options['order_count']
end

#volumeObject



28
29
30
# File 'lib/eve_online/esi/models/market_history.rb', line 28

def volume
  options['volume']
end