Class: Evecache::MarketList
- Inherits:
-
Object
- Object
- Evecache::MarketList
- Defined in:
- lib/evecache.rb
Instance Method Summary collapse
Instance Method Details
#buy_orders ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/evecache.rb', line 32 def buy_orders getBuyOrders.collect() { |o| h={} h[:price] = o.price h[:vol_remaining] = o.volRemaining h[:type_id] = o.type h[:range] = o.range h[:order_id] = o.orderID h[:vol_entered] = o.volEntered h[:min_volume] = o.minVolume h[:issued] = o.issued h[:duration] = o.duration h[:station_id] = o.stationID h[:region_id] = o.regionID h[:system_id] = o.solarSystemID h[:jumps] = o.jumps h[:sell_or_buy] = :buy h } end |
#invalid? ⇒ Boolean
8 9 10 11 |
# File 'lib/evecache.rb', line 8 def invalid? # I guess thats the only way to check for invalid files as the c++ code does not raise exceptions or something here self.region == 0 end |
#sell_orders ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/evecache.rb', line 13 def sell_orders getSellOrders.collect() { |o| h={} h[:price] = o.price h[:vol_remaining] = o.volRemaining h[:type_id] = o.type h[:range] = o.range h[:order_id] = o.orderID h[:vol_entered] = o.volEntered h[:min_volume] = o.minVolume h[:issued] = o.issued h[:duration] = o.duration h[:station_id] = o.stationID h[:region_id] = o.regionID h[:system_id] = o.solarSystemID h[:jumps] = o.jumps h[:sell_or_buy] = :sell h } end |