Class: Fishbowl::Objects::Account
- Inherits:
-
BaseObject
- Object
- BaseObject
- Fishbowl::Objects::Account
- Defined in:
- lib/fishbowl/objects/account.rb
Instance Attribute Summary collapse
-
#account_type ⇒ Object
readonly
Returns the value of attribute account_type.
-
#accounting_id ⇒ Object
readonly
Returns the value of attribute accounting_id.
-
#balance ⇒ Object
readonly
Returns the value of attribute balance.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_xml) ⇒ Account
constructor
A new instance of Account.
Methods inherited from BaseObject
Constructor Details
#initialize(account_xml) ⇒ Account
Returns a new instance of Account.
9 10 11 12 13 |
# File 'lib/fishbowl/objects/account.rb', line 9 def initialize(account_xml) @xml = account_xml parse_attributes self end |
Instance Attribute Details
#account_type ⇒ Object (readonly)
Returns the value of attribute account_type.
3 4 5 |
# File 'lib/fishbowl/objects/account.rb', line 3 def account_type @account_type end |
#accounting_id ⇒ Object (readonly)
Returns the value of attribute accounting_id.
3 4 5 |
# File 'lib/fishbowl/objects/account.rb', line 3 def accounting_id @accounting_id end |
#balance ⇒ Object (readonly)
Returns the value of attribute balance.
3 4 5 |
# File 'lib/fishbowl/objects/account.rb', line 3 def balance @balance end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/fishbowl/objects/account.rb', line 3 def name @name end |
Class Method Details
.attributes ⇒ Object
5 6 7 |
# File 'lib/fishbowl/objects/account.rb', line 5 def self.attributes %w{Name AccountingID AccountType Balance} end |