Class: IngRb::Account
- Inherits:
-
Object
- Object
- IngRb::Account
- Includes:
- Shared
- Defined in:
- lib/ing_rb/objects/account.rb
Overview
Account
Instance Attribute Summary collapse
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#iban ⇒ Object
readonly
Returns the value of attribute iban.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hsh = {}) ⇒ Account
constructor
A new instance of Account.
- #transactions ⇒ Object
Constructor Details
#initialize(hsh = {}) ⇒ Account
Returns a new instance of Account.
10 11 12 13 14 15 |
# File 'lib/ing_rb/objects/account.rb', line 10 def initialize(hsh = {}) @id = hsh["id"] @iban = hsh["iban"] @name = hsh["name"] @currency = hsh["currency"] end |
Instance Attribute Details
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
8 9 10 |
# File 'lib/ing_rb/objects/account.rb', line 8 def currency @currency end |
#iban ⇒ Object (readonly)
Returns the value of attribute iban.
8 9 10 |
# File 'lib/ing_rb/objects/account.rb', line 8 def iban @iban end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/ing_rb/objects/account.rb', line 8 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/ing_rb/objects/account.rb', line 8 def name @name end |
Class Method Details
.container ⇒ Object
21 22 23 |
# File 'lib/ing_rb/objects/account.rb', line 21 def self.container "account-list" end |
.url ⇒ Object
17 18 19 |
# File 'lib/ing_rb/objects/account.rb', line 17 def self.url "/v1/accounts" end |
Instance Method Details
#transactions ⇒ Object
25 26 27 |
# File 'lib/ing_rb/objects/account.rb', line 25 def transactions IngRb::Transaction.all(@id) end |