Class: BunqRb::MonetaryAccountBank

Inherits:
Object
  • Object
show all
Includes:
Shared
Defined in:
lib/bunq_rb/objects/monetary_account_bank.rb

Overview

MonetaryAccountBank

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#currencyObject (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

#descriptionObject (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

#idObject (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

Instance Method Details

#bunq_me_tabsObject



26
27
28
# File 'lib/bunq_rb/objects/monetary_account_bank.rb', line 26

def bunq_me_tabs
  BunqRb::BunqMeTab.all(@user_id, @id)
end

#paymentsObject



22
23
24
# File 'lib/bunq_rb/objects/monetary_account_bank.rb', line 22

def payments
  BunqRb::Payment.all(@user_id, @id)
end