Class: Bunq::MonetaryAccountBanks
- Inherits:
-
Object
- Object
- Bunq::MonetaryAccountBanks
- Defined in:
- lib/bunq/monetary_account_banks.rb
Instance Method Summary collapse
- #create(attributes) ⇒ Object
- #index(count: 200, older_id: nil, newer_id: nil) ⇒ Object
-
#initialize(parent_resource) ⇒ MonetaryAccountBanks
constructor
A new instance of MonetaryAccountBanks.
Constructor Details
#initialize(parent_resource) ⇒ MonetaryAccountBanks
Returns a new instance of MonetaryAccountBanks.
7 8 9 |
# File 'lib/bunq/monetary_account_banks.rb', line 7 def initialize(parent_resource) @resource = parent_resource.append('/monetary-account-bank') end |
Instance Method Details
#create(attributes) ⇒ Object
17 18 19 |
# File 'lib/bunq/monetary_account_banks.rb', line 17 def create(attributes) @resource.with_session { @resource.post(attributes) }['Response'] end |