Class: Bunq::Cards
- Inherits:
-
Object
- Object
- Bunq::Cards
- Defined in:
- lib/bunq/cards.rb
Instance Method Summary collapse
- #index ⇒ Object
-
#initialize(parent_resource) ⇒ Cards
constructor
A new instance of Cards.
Constructor Details
#initialize(parent_resource) ⇒ Cards
Returns a new instance of Cards.
3 4 5 |
# File 'lib/bunq/cards.rb', line 3 def initialize(parent_resource) @resource = parent_resource.append("/card") end |
Instance Method Details
#index ⇒ Object
7 8 9 |
# File 'lib/bunq/cards.rb', line 7 def index @resource.with_session { @resource.get }['Response'] end |