Class: TentClient::Group
- Inherits:
-
Object
- Object
- TentClient::Group
- Defined in:
- lib/tent-client/group.rb
Instance Method Summary collapse
- #count(params = {}) ⇒ Object
- #create(data) ⇒ Object
-
#initialize(client) ⇒ Group
constructor
A new instance of Group.
- #list(params) ⇒ Object
Constructor Details
#initialize(client) ⇒ Group
Returns a new instance of Group.
3 4 5 |
# File 'lib/tent-client/group.rb', line 3 def initialize(client) @client = client end |
Instance Method Details
#count(params = {}) ⇒ Object
7 8 9 |
# File 'lib/tent-client/group.rb', line 7 def count(params={}) @client.http.get('groups/count', params) end |
#create(data) ⇒ Object
15 16 17 |
# File 'lib/tent-client/group.rb', line 15 def create(data) @client.http.post('/groups', data) end |
#list(params) ⇒ Object
11 12 13 |
# File 'lib/tent-client/group.rb', line 11 def list(params) @client.http.get('/groups', params) end |