Class: Bunq::Installation

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

Instance Method Summary collapse

Constructor Details

#initialize(client, id) ⇒ Installation

Returns a new instance of Installation.



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

def initialize(client, id)
  @resource = Bunq::Resource.new(client, "/v1/installation/#{id}")
end

Instance Method Details

#showObject



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

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