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.



7
8
9
# File 'lib/bunq/monetary_account.rb', line 7

def initialize(parent_resource, id)
  @resource = parent_resource.append("/monetary-account/#{id}")
end

Instance Method Details

#notification_filter_urlObject



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

def notification_filter_url
  Bunq::NotificationFilterUrl.new(@resource)
end

#payment(id) ⇒ Object



11
12
13
# File 'lib/bunq/monetary_account.rb', line 11

def payment(id)
  Bunq::Payment.new(@resource, id)
end

#paymentsObject



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

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

#showObject



21
22
23
# File 'lib/bunq/monetary_account.rb', line 21

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