Class: Bunq::AttachmentPublic
- Inherits:
-
Object
- Object
- Bunq::AttachmentPublic
- Defined in:
- lib/bunq/attachment_public.rb
Instance Method Summary collapse
-
#initialize(client, id) ⇒ AttachmentPublic
constructor
A new instance of AttachmentPublic.
- #show ⇒ Object
Constructor Details
#initialize(client, id) ⇒ AttachmentPublic
Returns a new instance of AttachmentPublic.
5 6 7 |
# File 'lib/bunq/attachment_public.rb', line 5 def initialize(client, id) @resource = Bunq::Resource.new(client, "/v1/attachment-public/#{id}") end |
Instance Method Details
#show ⇒ Object
9 10 11 |
# File 'lib/bunq/attachment_public.rb', line 9 def show @resource.with_session { @resource.get }['Response'] end |