Class: SchoologyClient::GroupResource
- Defined in:
- lib/schoology_client/resources/group.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
#handle_response, #initialize, #post_request, #put_request
Constructor Details
This class inherits a constructor from SchoologyClient::Resource
Instance Method Details
#create(**attributes) ⇒ Object
6 7 8 |
# File 'lib/schoology_client/resources/group.rb', line 6 def create(**attributes) GroupResource.new post_request("groups", body: attributes.to_json).body end |
#update(id, **attributes) ⇒ Object
10 11 12 |
# File 'lib/schoology_client/resources/group.rb', line 10 def update(id, **attributes) GroupResource.new put_request("groups/#{id}", body: attributes.to_json).body end |