Class: Bunq::MonetaryAccount
- Inherits:
-
Object
- Object
- Bunq::MonetaryAccount
- Defined in:
- lib/bunq/monetary_account.rb
Overview
Instance Method Summary collapse
- #attachments ⇒ Object
- #bunqme_tab(id) ⇒ Object
- #bunqme_tabs ⇒ Object
-
#initialize(parent_resource, id) ⇒ MonetaryAccount
constructor
A new instance of MonetaryAccount.
- #notification_filter_url ⇒ Object
- #payment(id) ⇒ Object
- #payments ⇒ Object
- #show ⇒ Object
Constructor Details
#initialize(parent_resource, id) ⇒ MonetaryAccount
Returns a new instance of MonetaryAccount.
12 13 14 |
# File 'lib/bunq/monetary_account.rb', line 12 def initialize(parent_resource, id) @resource = parent_resource.append("/monetary-account/#{id}") end |
Instance Method Details
#attachments ⇒ Object
16 17 18 |
# File 'lib/bunq/monetary_account.rb', line 16 def Bunq::Attachments.new(@resource) end |
#bunqme_tab(id) ⇒ Object
20 21 22 |
# File 'lib/bunq/monetary_account.rb', line 20 def bunqme_tab(id) Bunq::BunqmeTab.new(@resource, id) end |
#bunqme_tabs ⇒ Object
24 25 26 |
# File 'lib/bunq/monetary_account.rb', line 24 def bunqme_tabs Bunq::BunqmeTabs.new(@resource) end |
#notification_filter_url ⇒ Object
42 43 44 |
# File 'lib/bunq/monetary_account.rb', line 42 def notification_filter_url Bunq::NotificationFilterUrl.new(@resource) end |
#payment(id) ⇒ Object
28 29 30 |
# File 'lib/bunq/monetary_account.rb', line 28 def payment(id) Bunq::Payment.new(@resource, id) end |
#payments ⇒ Object
32 33 34 |
# File 'lib/bunq/monetary_account.rb', line 32 def payments Bunq::Payments.new(@resource) end |
#show ⇒ Object
38 39 40 |
# File 'lib/bunq/monetary_account.rb', line 38 def show @resource.with_session { @resource.get }['Response'] end |