Class: Mondo::Account

Inherits:
Resource show all
Defined in:
lib/api/mondo/account.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

boolean_accessor, boolean_reader, date_accessor, date_writer, #initialize, #inspect, #to_s

Constructor Details

This class inherits a constructor from Mondo::Resource

Instance Attribute Details

#account_numberObject

Returns the value of attribute account_number.



4
5
6
# File 'lib/api/mondo/account.rb', line 4

def 
  @account_number
end

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/api/mondo/account.rb', line 4

def description
  @description
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/api/mondo/account.rb', line 4

def id
  @id
end

#raw_dataObject

Returns the value of attribute raw_data.



4
5
6
# File 'lib/api/mondo/account.rb', line 4

def raw_data
  @raw_data
end

#sort_codeObject

Returns the value of attribute sort_code.



4
5
6
# File 'lib/api/mondo/account.rb', line 4

def sort_code
  @sort_code
end

Instance Method Details

#balanceObject



8
9
10
# File 'lib/api/mondo/account.rb', line 8

def balance
  self.client.balance(id)
end