Class: Fishbowl::Objects::Account

Inherits:
BaseObject show all
Defined in:
lib/fishbowl/objects/account.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#send_request

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()
  @xml = 
  parse_attributes
  self
end

Instance Attribute Details

#account_typeObject (readonly)

Returns the value of attribute account_type.



3
4
5
# File 'lib/fishbowl/objects/account.rb', line 3

def 
  @account_type
end

#accounting_idObject (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

#balanceObject (readonly)

Returns the value of attribute balance.



3
4
5
# File 'lib/fishbowl/objects/account.rb', line 3

def balance
  @balance
end

#nameObject (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

.attributesObject



5
6
7
# File 'lib/fishbowl/objects/account.rb', line 5

def self.attributes
  %w{Name AccountingID AccountType Balance}
end