Class: Increase::Resources::Groups

Inherits:
Object
  • Object
show all
Defined in:
lib/increase/resources/groups.rb

Instance Method Summary collapse

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.

Parameters:

  • opts (Hash|RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



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