Class: Beanstream::Criteria
- Inherits:
-
Object
- Object
- Beanstream::Criteria
- Defined in:
- lib/beanstream/reporting_api.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(field, operator, value) ⇒ Criteria
constructor
A new instance of Criteria.
- #to_hash ⇒ Object
Constructor Details
#initialize(field, operator, value) ⇒ Criteria
Returns a new instance of Criteria.
53 54 55 56 57 |
# File 'lib/beanstream/reporting_api.rb', line 53 def initialize(field, operator, value) @field = field @operator = operator @value = value end |
Instance Attribute Details
#field ⇒ Object
Returns the value of attribute field.
51 52 53 |
# File 'lib/beanstream/reporting_api.rb', line 51 def field @field end |
#operator ⇒ Object
Returns the value of attribute operator.
51 52 53 |
# File 'lib/beanstream/reporting_api.rb', line 51 def operator @operator end |
#value ⇒ Object
Returns the value of attribute value.
51 52 53 |
# File 'lib/beanstream/reporting_api.rb', line 51 def value @value end |
Instance Method Details
#to_hash ⇒ Object
59 60 61 |
# File 'lib/beanstream/reporting_api.rb', line 59 def to_hash() {'field' => @field, 'operator' => @operator, 'value' => @value} end |