Class: BunqRb::Card
- Inherits:
-
Object
- Object
- BunqRb::Card
- Includes:
- Shared
- Defined in:
- lib/bunq_rb/objects/card.rb
Overview
Card
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hsh = {}) ⇒ Card
constructor
A new instance of Card.
Constructor Details
#initialize(hsh = {}) ⇒ Card
Returns a new instance of Card.
10 11 12 |
# File 'lib/bunq_rb/objects/card.rb', line 10 def initialize(hsh = {}) @id = hsh["id"] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/bunq_rb/objects/card.rb', line 8 def id @id end |
Class Method Details
.url(user_id) ⇒ Object
14 15 16 |
# File 'lib/bunq_rb/objects/card.rb', line 14 def self.url(user_id) "/v1/user/#{user_id}/card" end |