Class: Bunq::Cards

Inherits:
Object
  • Object
show all
Defined in:
lib/bunq/cards.rb

Instance Method Summary collapse

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

#indexObject



7
8
9
# File 'lib/bunq/cards.rb', line 7

def index
  @resource.with_session { @resource.get }['Response']
end