Class: Bunq::Installation
- Inherits:
-
Object
- Object
- Bunq::Installation
- Defined in:
- lib/bunq/installation.rb
Instance Method Summary collapse
-
#initialize(client, id) ⇒ Installation
constructor
A new instance of Installation.
- #show ⇒ Object
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
#show ⇒ Object
9 10 11 |
# File 'lib/bunq/installation.rb', line 9 def show @resource.with_session { @resource.get }['Response'] end |