Class: EveApp::XmlApi::Classes::MarketOrder
- Defined in:
- lib/eve_app/xml_api/classes.rb
Instance Attribute Summary collapse
-
#account_key ⇒ Object
readonly
Returns the value of attribute account_key.
-
#bid ⇒ Object
readonly
Returns the value of attribute bid.
-
#character_id ⇒ Object
readonly
Returns the value of attribute character_id.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#escrow ⇒ Object
readonly
Returns the value of attribute escrow.
-
#issued_at ⇒ Object
readonly
Returns the value of attribute issued_at.
-
#minimum_volume ⇒ Object
readonly
Returns the value of attribute minimum_volume.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#price ⇒ Object
readonly
Returns the value of attribute price.
-
#range ⇒ Object
readonly
Returns the value of attribute range.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#station_id ⇒ Object
readonly
Returns the value of attribute station_id.
-
#type_id ⇒ Object
readonly
Returns the value of attribute type_id.
-
#volume_entered ⇒ Object
readonly
Returns the value of attribute volume_entered.
-
#volume_remaining ⇒ Object
readonly
Returns the value of attribute volume_remaining.
Instance Method Summary collapse
-
#initialize(elem) ⇒ MarketOrder
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ MarketOrder
:nodoc:
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/eve_app/xml_api/classes.rb', line 147 def initialize(elem) #:nodoc: @order_id = elem['orderID'].to_i @character_id = elem['charID'].to_i @station_id = elem['stationID'].to_i @volume_entered = elem['volEntered'].to_i @volume_remaining = elem['volRemaining'].to_i @minimum_volume = elem['minVolume'].to_i @state = case elem['orderState'].to_i when 0 'Active' when 1 'Closed' when 2 'Expired' when 3 'Cancelled' when 4 'Pending' when 5 'Character Deleted' end @type_id = elem['typeID'].to_i @range = elem['range'].to_i @account_key = elem['accountKey'].to_i @escrow = elem['escrow'].to_f @price = elem['price'].to_f @bid = elem['bid'] == '1' @duration = elem['duration'].to_i @issued_at = parse_time(elem['issued']) end |
Instance Attribute Details
#account_key ⇒ Object (readonly)
Returns the value of attribute account_key.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def account_key @account_key end |
#bid ⇒ Object (readonly)
Returns the value of attribute bid.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def bid @bid end |
#character_id ⇒ Object (readonly)
Returns the value of attribute character_id.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def character_id @character_id end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def duration @duration end |
#escrow ⇒ Object (readonly)
Returns the value of attribute escrow.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def escrow @escrow end |
#issued_at ⇒ Object (readonly)
Returns the value of attribute issued_at.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def issued_at @issued_at end |
#minimum_volume ⇒ Object (readonly)
Returns the value of attribute minimum_volume.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def minimum_volume @minimum_volume end |
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def order_id @order_id end |
#price ⇒ Object (readonly)
Returns the value of attribute price.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def price @price end |
#range ⇒ Object (readonly)
Returns the value of attribute range.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def range @range end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def state @state end |
#station_id ⇒ Object (readonly)
Returns the value of attribute station_id.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def station_id @station_id end |
#type_id ⇒ Object (readonly)
Returns the value of attribute type_id.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def type_id @type_id end |
#volume_entered ⇒ Object (readonly)
Returns the value of attribute volume_entered.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def volume_entered @volume_entered end |
#volume_remaining ⇒ Object (readonly)
Returns the value of attribute volume_remaining.
144 145 146 |
# File 'lib/eve_app/xml_api/classes.rb', line 144 def volume_remaining @volume_remaining end |