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
{
average: average,
date: date,
highest: highest,
lowest: lowest,
order_count: order_count,
volume: volume
}
end
|
#average ⇒ Object
18
19
20
|
# File 'lib/eve_online/esi/models/market_history.rb', line 18
def average
options["average"]
end
|
#date ⇒ Object
22
23
24
25
26
|
# File 'lib/eve_online/esi/models/market_history.rb', line 22
def date
date = options["date"]
parse_datetime_with_timezone(date) if date
end
|
#highest ⇒ Object
28
29
30
|
# File 'lib/eve_online/esi/models/market_history.rb', line 28
def highest
options["highest"]
end
|
#lowest ⇒ Object
32
33
34
|
# File 'lib/eve_online/esi/models/market_history.rb', line 32
def lowest
options["lowest"]
end
|
#order_count ⇒ Object
36
37
38
|
# File 'lib/eve_online/esi/models/market_history.rb', line 36
def order_count
options["order_count"]
end
|
#volume ⇒ Object
40
41
42
|
# File 'lib/eve_online/esi/models/market_history.rb', line 40
def volume
options["volume"]
end
|