Class: RestPack::Group::Client::GroupApi
- Inherits:
-
BaseApi
show all
- Defined in:
- lib/restpack-group-client/apis/group_api.rb
Instance Attribute Summary
Attributes inherited from Client::Api
#options
Instance Method Summary
collapse
Methods inherited from BaseApi
#hydrate
Methods inherited from Client::Api
#build_url, #http_get, #http_post, #http_put, #initialize
Instance Method Details
#create(group) ⇒ Object
38
39
40
|
# File 'lib/restpack-group-client/apis/group_api.rb', line 38
def create(group)
http_post("/api/v1/groups", :group => group)
end
|
#index(params) ⇒ Object
28
29
30
31
|
# File 'lib/restpack-group-client/apis/group_api.rb', line 28
def index(params)
hydrate http_get('/api/v1/groups.json', params)
end
|
#show(id) ⇒ Object
33
34
35
36
|
# File 'lib/restpack-group-client/apis/group_api.rb', line 33
def show(id)
hydrate http_get("/api/v1/groups/#{id}.json")
end
|