Class: Bunq::MonetaryAccount

Inherits:
Object
  • Object
show all
Defined in:
lib/bunq/monetary_account.rb

Overview

Instance Method Summary collapse

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

#attachmentsObject



16
17
18
# File 'lib/bunq/monetary_account.rb', line 16

def attachments
  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_tabsObject



24
25
26
# File 'lib/bunq/monetary_account.rb', line 24

def bunqme_tabs
  Bunq::BunqmeTabs.new(@resource)
end

#notification_filter_urlObject



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

#paymentsObject



32
33
34
# File 'lib/bunq/monetary_account.rb', line 32

def payments
  Bunq::Payments.new(@resource)
end

#showObject



38
39
40
# File 'lib/bunq/monetary_account.rb', line 38

def show
  @resource.with_session { @resource.get }['Response']
end