Class: Beanstream::Criteria

Inherits:
Object
  • Object
show all
Defined in:
lib/beanstream/reporting_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fieldObject

Returns the value of attribute field.



51
52
53
# File 'lib/beanstream/reporting_api.rb', line 51

def field
  @field
end

#operatorObject

Returns the value of attribute operator.



51
52
53
# File 'lib/beanstream/reporting_api.rb', line 51

def operator
  @operator
end

#valueObject

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_hashObject



59
60
61
# File 'lib/beanstream/reporting_api.rb', line 59

def to_hash()
  {'field' => @field, 'operator' => @operator, 'value' => @value}
end