Class: Reve::Classes::WalletJournal

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

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

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ WalletJournal

:nodoc:



1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
# File 'lib/reve/classes.rb', line 1409

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

#amountObject (readonly)

Returns the value of attribute amount.



1407
1408
1409
# File 'lib/reve/classes.rb', line 1407

def amount
  @amount
end

#arg_id1Object (readonly)

Returns the value of attribute arg_id1.



1407
1408
1409
# File 'lib/reve/classes.rb', line 1407

def arg_id1
  @arg_id1
end

#arg_name1Object (readonly)

Returns the value of attribute arg_name1.



1407
1408
1409
# File 'lib/reve/classes.rb', line 1407

def arg_name1
  @arg_name1
end

#balanceObject (readonly)

Returns the value of attribute balance.



1407
1408
1409
# File 'lib/reve/classes.rb', line 1407

def balance
  @balance
end

#dateObject (readonly)

Returns the value of attribute date.



1407
1408
1409
# File 'lib/reve/classes.rb', line 1407

def date
  @date
end

#owner_id1Object (readonly)

Returns the value of attribute owner_id1.



1407
1408
1409
# File 'lib/reve/classes.rb', line 1407

def owner_id1
  @owner_id1
end

#owner_id2Object (readonly)

Returns the value of attribute owner_id2.



1407
1408
1409
# File 'lib/reve/classes.rb', line 1407

def owner_id2
  @owner_id2
end

#owner_name1Object (readonly)

Returns the value of attribute owner_name1.



1407
1408
1409
# File 'lib/reve/classes.rb', line 1407

def owner_name1
  @owner_name1
end

#owner_name2Object (readonly)

Returns the value of attribute owner_name2.



1407
1408
1409
# File 'lib/reve/classes.rb', line 1407

def owner_name2
  @owner_name2
end

#reasonObject (readonly)

Returns the value of attribute reason.



1407
1408
1409
# File 'lib/reve/classes.rb', line 1407

def reason
  @reason
end

#ref_idObject (readonly) Also known as: id

Returns the value of attribute ref_id.



1407
1408
1409
# File 'lib/reve/classes.rb', line 1407

def ref_id
  @ref_id
end

#reftype_idObject (readonly)

Returns the value of attribute reftype_id.



1407
1408
1409
# File 'lib/reve/classes.rb', line 1407

def reftype_id
  @reftype_id
end