Class: Desk::Api::Filters
- Inherits:
-
Object
- Object
- Desk::Api::Filters
- Includes:
- Listable
- Defined in:
- lib/desk/api/filters.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
- #cases(id) ⇒ Object
-
#initialize(connection) ⇒ Filters
constructor
A new instance of Filters.
Methods included from Listable
Constructor Details
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
10 11 12 |
# File 'lib/desk/api/filters.rb', line 10 def connection @connection end |
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
10 11 12 |
# File 'lib/desk/api/filters.rb', line 10 def endpoint @endpoint end |
#return_class ⇒ Object (readonly)
Returns the value of attribute return_class.
10 11 12 |
# File 'lib/desk/api/filters.rb', line 10 def return_class @return_class end |
Instance Method Details
#cases(id) ⇒ Object
18 19 20 |
# File 'lib/desk/api/filters.rb', line 18 def cases(id) Desk::Collection.new(connection.get("filters/#{id}/cases"), Desk::Case) end |