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
  {
    average: average,
    date: date,
    highest: highest,
    lowest: lowest,
    order_count: order_count,
    volume: volume
  }
end

#averageObject



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

def average
  options["average"]
end

#dateObject



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

#highestObject



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

def highest
  options["highest"]
end

#lowestObject



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

def lowest
  options["lowest"]
end

#order_countObject



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

def order_count
  options["order_count"]
end

#volumeObject



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

def volume
  options["volume"]
end