Class: EveOnline::ESI::Models::MarketHistory
- Inherits:
-
Base
- Object
- Base
- EveOnline::ESI::Models::MarketHistory
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
Instance Method Details
#as_json ⇒ Object
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
|
#average ⇒ Object
36
37
38
|
# File 'lib/eve_online/esi/models/market_history.rb', line 36
def average
options['average']
end
|
#date ⇒ Object
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
|
#highest ⇒ Object
32
33
34
|
# File 'lib/eve_online/esi/models/market_history.rb', line 32
def highest
options['highest']
end
|
#lowest ⇒ Object
40
41
42
|
# File 'lib/eve_online/esi/models/market_history.rb', line 40
def lowest
options['lowest']
end
|
#order_count ⇒ Object
24
25
26
|
# File 'lib/eve_online/esi/models/market_history.rb', line 24
def order_count
options['order_count']
end
|
#volume ⇒ Object
28
29
30
|
# File 'lib/eve_online/esi/models/market_history.rb', line 28
def volume
options['volume']
end
|