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