Class: Desk::Api::Groups
- Inherits:
-
Object
- Object
- Desk::Api::Groups
- Includes:
- Listable
- Defined in:
- lib/desk/api/groups.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#return_class ⇒ Object
readonly
Returns the value of attribute return_class.
Instance Method Summary collapse
- #filters(id) ⇒ Object
-
#initialize(connection) ⇒ Groups
constructor
A new instance of Groups.
- #users(id) ⇒ Object
Methods included from Listable
Constructor Details
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
12 13 14 |
# File 'lib/desk/api/groups.rb', line 12 def connection @connection end |
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
12 13 14 |
# File 'lib/desk/api/groups.rb', line 12 def endpoint @endpoint end |
#return_class ⇒ Object (readonly)
Returns the value of attribute return_class.
12 13 14 |
# File 'lib/desk/api/groups.rb', line 12 def return_class @return_class end |
Instance Method Details
#filters(id) ⇒ Object
20 21 22 |
# File 'lib/desk/api/groups.rb', line 20 def filters(id) Desk::Collection.new(connection.get("groups/#{id}/filters"), Desk::Filter) end |
#users(id) ⇒ Object
24 25 26 |
# File 'lib/desk/api/groups.rb', line 24 def users(id) Desk::Collection.new(connection.get("groups/#{id}/users"), Desk::User) end |