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.



5
6
7
# File 'lib/bunq/cards.rb', line 5

def initialize(parent_resource)
  @resource = parent_resource.append('/card')
end

Instance Method Details

#indexObject



9
10
11
# File 'lib/bunq/cards.rb', line 9

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