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.
5 6 7 |
# File 'lib/bunq/cards.rb', line 5 def initialize(parent_resource) @resource = parent_resource.append('/card') end |
Instance Method Details
#index ⇒ Object
9 10 11 |
# File 'lib/bunq/cards.rb', line 9 def index @resource.with_session { @resource.get }['Response'] end |