Class: V2Intuity::QueryFilters::QueryFilter
- Inherits:
-
Object
- Object
- V2Intuity::QueryFilters::QueryFilter
- Defined in:
- lib/v2_intuity/query_filters/filter.rb
Direct Known Subclasses
Constant Summary collapse
- QUERY_FILTERS =
{ access_token: 'token', source: 'source', start_filter: 'start_date_filter', end_filter: 'end_date_filter', format_redirect: 'format', sort: 'sort' }.freeze
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ QueryFilter
constructor
A new instance of QueryFilter.
- #to_hash ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ QueryFilter
Returns a new instance of QueryFilter.
12 13 14 15 |
# File 'lib/v2_intuity/query_filters/filter.rb', line 12 def initialize( = {}) @name = [:name] @value = [:value] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/v2_intuity/query_filters/filter.rb', line 4 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/v2_intuity/query_filters/filter.rb', line 4 def value @value end |
Instance Method Details
#to_hash ⇒ Object
17 18 19 |
# File 'lib/v2_intuity/query_filters/filter.rb', line 17 def to_hash { @name.to_sym => @value } end |