Class: BunqRb::BunqMeTab

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

Overview

Avatar

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hsh = {}) ⇒ BunqMeTab

Returns a new instance of BunqMeTab.



10
11
12
13
14
15
# File 'lib/bunq_rb/objects/bunq_me_tab.rb', line 10

def initialize(hsh = {})
  @id = hsh["id"]
  @status = hsh["status"]
  @created = Time.parse(hsh["created"])
  @updated = Time.parse(hsh["updated"])
end

Instance Attribute Details

#createdObject (readonly)

Returns the value of attribute created.



8
9
10
# File 'lib/bunq_rb/objects/bunq_me_tab.rb', line 8

def created
  @created
end

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/bunq_rb/objects/bunq_me_tab.rb', line 8

def id
  @id
end

#statusObject (readonly)

Returns the value of attribute status.



8
9
10
# File 'lib/bunq_rb/objects/bunq_me_tab.rb', line 8

def status
  @status
end

#updatedObject (readonly)

Returns the value of attribute updated.



8
9
10
# File 'lib/bunq_rb/objects/bunq_me_tab.rb', line 8

def updated
  @updated
end

Class Method Details

.url(user_id, monetary_account_id) ⇒ Object



17
18
19
# File 'lib/bunq_rb/objects/bunq_me_tab.rb', line 17

def self.url(user_id, )
  "/v1/user/#{user_id}/monetary-account/#{}/bunqme-tab"
end