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
A new instance of Groups.
-
#retrieve(opts = {}) ⇒ Increase::Models::Group
Returns details for the currently authenticated Group.
Constructor Details
#initialize(client:) ⇒ Groups
Returns a new instance of Groups.
6 7 8 |
# File 'lib/increase/resources/groups.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(opts = {}) ⇒ Increase::Models::Group
Returns details for the currently authenticated Group.
15 16 17 18 19 20 21 |
# File 'lib/increase/resources/groups.rb', line 15 def retrieve(opts = {}) req = {} req[:method] = :get req[:path] = "/groups/current" req[:model] = Increase::Models::Group @client.request(req, opts) end |