Class: Increase::Resources::Groups
- Inherits:
-
Object
- Object
- Increase::Resources::Groups
- Defined in:
- lib/increase/resources/groups.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Groups
constructor
private
A new instance of Groups.
-
#retrieve(request_options: {}) ⇒ Increase::Models::Group
Returns details for the currently authenticated Group.
Constructor Details
#initialize(client:) ⇒ Groups
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Groups.
27 28 29 |
# File 'lib/increase/resources/groups.rb', line 27 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(request_options: {}) ⇒ Increase::Models::Group
Returns details for the currently authenticated Group.
15 16 17 18 19 20 21 22 |
# File 'lib/increase/resources/groups.rb', line 15 def retrieve(params = {}) @client.request( method: :get, path: "groups/current", model: Increase::Group, options: params[:request_options] ) end |