Class: Bunq::Attachment
- Inherits:
-
Object
- Object
- Bunq::Attachment
- Defined in:
- lib/bunq/attachment.rb
Instance Method Summary collapse
-
#initialize(parent_resource, id) ⇒ Attachment
constructor
A new instance of Attachment.
- #show ⇒ Object
Constructor Details
#initialize(parent_resource, id) ⇒ Attachment
Returns a new instance of Attachment.
7 8 9 |
# File 'lib/bunq/attachment.rb', line 7 def initialize(parent_resource, id) @resource = parent_resource.append("/attachment/#{id}") end |
Instance Method Details
#show ⇒ Object
11 12 13 |
# File 'lib/bunq/attachment.rb', line 11 def show @resource.with_session { @resource.get }['Response'] end |