Class: BunqRb::MonetaryAccountBank
- Inherits:
-
Object
- Object
- BunqRb::MonetaryAccountBank
- Includes:
- Shared
- Defined in:
- lib/bunq_rb/objects/monetary_account_bank.rb
Overview
MonetaryAccountBank
Instance Attribute Summary collapse
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Class Method Summary collapse
Instance Method Summary collapse
- #bunq_me_tabs ⇒ Object
-
#initialize(hsh = {}) ⇒ MonetaryAccountBank
constructor
A new instance of MonetaryAccountBank.
- #payments ⇒ Object
Constructor Details
#initialize(hsh = {}) ⇒ MonetaryAccountBank
Returns a new instance of MonetaryAccountBank.
10 11 12 13 14 15 16 |
# File 'lib/bunq_rb/objects/monetary_account_bank.rb', line 10 def initialize(hsh = {}) # puts hsh @id = hsh["id"] @user_id = hsh["user_id"] @currency = hsh["currency"] @description = hsh["description"] end |
Instance Attribute Details
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
8 9 10 |
# File 'lib/bunq_rb/objects/monetary_account_bank.rb', line 8 def currency @currency end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
8 9 10 |
# File 'lib/bunq_rb/objects/monetary_account_bank.rb', line 8 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/bunq_rb/objects/monetary_account_bank.rb', line 8 def id @id end |
Class Method Details
.url(user_id) ⇒ Object
18 19 20 |
# File 'lib/bunq_rb/objects/monetary_account_bank.rb', line 18 def self.url(user_id) "/v1/user/#{user_id}/monetary-account-bank" end |