Class: BunqRb::BunqMeTab
- Inherits:
-
Object
- Object
- BunqRb::BunqMeTab
- Includes:
- Shared
- Defined in:
- lib/bunq_rb/objects/bunq_me_tab.rb
Overview
Avatar
Instance Attribute Summary collapse
-
#created ⇒ Object
readonly
Returns the value of attribute created.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#updated ⇒ Object
readonly
Returns the value of attribute updated.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hsh = {}) ⇒ BunqMeTab
constructor
A new instance of BunqMeTab.
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
#created ⇒ Object (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 |
#id ⇒ Object (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 |
#status ⇒ Object (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 |
#updated ⇒ Object (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, monetary_account_id) "/v1/user/#{user_id}/monetary-account/#{monetary_account_id}/bunqme-tab" end |