Class: Reve::Classes::WalletJournal
Overview
Corporation or Character WalletJournal for Reve::API#personal_wallet_journal and Reve::API#corporate_wallet_journal Attributes:
-
date ( Time ) - Time the action occured
-
ref_id ( Integer ) - Reference ID for this action (used with stepping through Journal Entries)
-
reftype_id ( Integer ) - RefType id
-
owner_name1 ( String ) - Name of the Player/Corporation/whatever that did something to owner_name2
-
owner_name2 ( String ) - Recipient of this action (from owner_name1)
-
owner_id1 ( Integer ) - ID of the Owner’s whatever (Player/Corporation/Faction/Whatever)
-
owner_id2 ( Integer ) - ID of the recpient (Player/Corporation/Faction/Whatever)
-
arg_name1 ( String ) - For bounty, what caused this. (May be blank)
-
arg_id1 ( Integer ) - ID of arg_name1
-
amount ( Float ) - Wallet delta
-
balance ( Float ) - New wallet balance after this action
-
reason ( String ) - Any reason for the action. May be blank (useful in giving ISK)
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#arg_id1 ⇒ Object
readonly
Returns the value of attribute arg_id1.
-
#arg_name1 ⇒ Object
readonly
Returns the value of attribute arg_name1.
-
#balance ⇒ Object
readonly
Returns the value of attribute balance.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#owner_id1 ⇒ Object
readonly
Returns the value of attribute owner_id1.
-
#owner_id2 ⇒ Object
readonly
Returns the value of attribute owner_id2.
-
#owner_name1 ⇒ Object
readonly
Returns the value of attribute owner_name1.
-
#owner_name2 ⇒ Object
readonly
Returns the value of attribute owner_name2.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#ref_id ⇒ Object
(also: #id)
readonly
Returns the value of attribute ref_id.
-
#reftype_id ⇒ Object
readonly
Returns the value of attribute reftype_id.
Instance Method Summary collapse
-
#initialize(elem) ⇒ WalletJournal
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ WalletJournal
:nodoc:
1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 |
# File 'lib/reve/classes.rb', line 1327 def initialize(elem) #:nodoc: @date = elem['date'].to_time @ref_id = elem['refID'].to_i @reftype_id = elem['refTypeID'].to_i @owner_name1 = elem['ownerName1'] @owner_name2 = elem['ownerName2'] @owner_id1 = elem['ownerID1'].to_i if elem['ownerID1'] @owner_id2 = elem['ownerID2'].to_i if elem['ownerID2'] @arg_name1 = elem['argName1'] @arg_id1 = elem['argID1'].to_i if elem['argID1'] @amount = elem['amount'].to_f @balance = elem['balance'].to_f @reason = elem['reason'] end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
1325 1326 1327 |
# File 'lib/reve/classes.rb', line 1325 def amount @amount end |
#arg_id1 ⇒ Object (readonly)
Returns the value of attribute arg_id1.
1325 1326 1327 |
# File 'lib/reve/classes.rb', line 1325 def arg_id1 @arg_id1 end |
#arg_name1 ⇒ Object (readonly)
Returns the value of attribute arg_name1.
1325 1326 1327 |
# File 'lib/reve/classes.rb', line 1325 def arg_name1 @arg_name1 end |
#balance ⇒ Object (readonly)
Returns the value of attribute balance.
1325 1326 1327 |
# File 'lib/reve/classes.rb', line 1325 def balance @balance end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
1325 1326 1327 |
# File 'lib/reve/classes.rb', line 1325 def date @date end |
#owner_id1 ⇒ Object (readonly)
Returns the value of attribute owner_id1.
1325 1326 1327 |
# File 'lib/reve/classes.rb', line 1325 def owner_id1 @owner_id1 end |
#owner_id2 ⇒ Object (readonly)
Returns the value of attribute owner_id2.
1325 1326 1327 |
# File 'lib/reve/classes.rb', line 1325 def owner_id2 @owner_id2 end |
#owner_name1 ⇒ Object (readonly)
Returns the value of attribute owner_name1.
1325 1326 1327 |
# File 'lib/reve/classes.rb', line 1325 def owner_name1 @owner_name1 end |
#owner_name2 ⇒ Object (readonly)
Returns the value of attribute owner_name2.
1325 1326 1327 |
# File 'lib/reve/classes.rb', line 1325 def owner_name2 @owner_name2 end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
1325 1326 1327 |
# File 'lib/reve/classes.rb', line 1325 def reason @reason end |
#ref_id ⇒ Object (readonly) Also known as: id
Returns the value of attribute ref_id.
1325 1326 1327 |
# File 'lib/reve/classes.rb', line 1325 def ref_id @ref_id end |
#reftype_id ⇒ Object (readonly)
Returns the value of attribute reftype_id.
1325 1326 1327 |
# File 'lib/reve/classes.rb', line 1325 def reftype_id @reftype_id end |