Class: Radian6::FilterQuery
- Inherits:
-
Object
- Object
- Radian6::FilterQuery
- Defined in:
- lib/radian6/filter_query.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#isExcludeQuery ⇒ Object
Returns the value of attribute isExcludeQuery.
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(params) ⇒ FilterQuery
constructor
A new instance of FilterQuery.
Constructor Details
#initialize(params) ⇒ FilterQuery
Returns a new instance of FilterQuery.
5 6 7 8 9 10 |
# File 'lib/radian6/filter_query.rb', line 5 def initialize(params) params = {} unless params.is_a? Hash @isExcludeQuery = params[:isExcludeQuery] || '' @query = params[:query] || '' @id = params[:id] || '' end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/radian6/filter_query.rb', line 3 def id @id end |
#isExcludeQuery ⇒ Object
Returns the value of attribute isExcludeQuery.
3 4 5 |
# File 'lib/radian6/filter_query.rb', line 3 def isExcludeQuery @isExcludeQuery end |
#query ⇒ Object
Returns the value of attribute query.
3 4 5 |
# File 'lib/radian6/filter_query.rb', line 3 def query @query end |