Class: TestdroidAPI::FilterItem
- Inherits:
-
Object
- Object
- TestdroidAPI::FilterItem
- Defined in:
- lib/testdroid-api-filter-builder.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#operand ⇒ Object
Returns the value of attribute operand.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value, operand, type) ⇒ FilterItem
constructor
A new instance of FilterItem.
- #to_s ⇒ Object
- #values ⇒ Object
Constructor Details
#initialize(name, value, operand, type) ⇒ FilterItem
Returns a new instance of FilterItem.
133 134 135 |
# File 'lib/testdroid-api-filter-builder.rb', line 133 def initialize(name, value, operand, type) @name, @value, @operand, @type = name, value, operand, type end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
131 132 133 |
# File 'lib/testdroid-api-filter-builder.rb', line 131 def name @name end |
#operand ⇒ Object
Returns the value of attribute operand.
131 132 133 |
# File 'lib/testdroid-api-filter-builder.rb', line 131 def operand @operand end |
#type ⇒ Object
Returns the value of attribute type.
131 132 133 |
# File 'lib/testdroid-api-filter-builder.rb', line 131 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
131 132 133 |
# File 'lib/testdroid-api-filter-builder.rb', line 131 def value @value end |
Instance Method Details
#to_s ⇒ Object
141 142 143 |
# File 'lib/testdroid-api-filter-builder.rb', line 141 def to_s "#{@type}_#{@name}_#{@operand}" end |
#values ⇒ Object
137 138 139 |
# File 'lib/testdroid-api-filter-builder.rb', line 137 def values @value.join('|') end |