Class: Filter
- Inherits:
-
Object
- Object
- Filter
- Defined in:
- lib/filter.rb
Instance Method Summary collapse
- #get(options) ⇒ Object
-
#initialize(clientw) ⇒ Filter
constructor
A new instance of Filter.
- #list ⇒ Object
Constructor Details
#initialize(clientw) ⇒ Filter
Returns a new instance of Filter.
6 7 8 |
# File 'lib/filter.rb', line 6 def initialize(clientw) @clientw = clientw end |
Instance Method Details
#get(options) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/filter.rb', line 15 def get() query = {} query = ReqUtils.add_if_not_blank(query, 'filter_id', ['filter_id']) query = ReqUtils.add_if_not_blank(query, 'filter_reference', ['filter_reference']) resp = @clientw.get("filter", query) return resp['data'] end |
#list ⇒ Object
10 11 12 13 |
# File 'lib/filter.rb', line 10 def list() resp = @clientw.get("filters") return resp['data'] end |