Class: AxHub::Data::WhereBuilder
- Inherits:
-
Object
- Object
- AxHub::Data::WhereBuilder
- Defined in:
- lib/axhub_sdk/data/dsl/ops.rb
Instance Attribute Summary collapse
-
#like ⇒ Object
readonly
Returns the value of attribute like.
Instance Method Summary collapse
- #eq(value) ⇒ Object
- #gt(value) ⇒ Object
- #gte(value) ⇒ Object
- #in_(values) ⇒ Object
-
#initialize(name) ⇒ WhereBuilder
constructor
A new instance of WhereBuilder.
- #lt(value) ⇒ Object
- #lte(value) ⇒ Object
- #ne(value) ⇒ Object
Constructor Details
#initialize(name) ⇒ WhereBuilder
Returns a new instance of WhereBuilder.
127 128 129 130 |
# File 'lib/axhub_sdk/data/dsl/ops.rb', line 127 def initialize(name) @name = name @like = LikeBuilder.new(name) end |
Instance Attribute Details
#like ⇒ Object (readonly)
Returns the value of attribute like.
125 126 127 |
# File 'lib/axhub_sdk/data/dsl/ops.rb', line 125 def like @like end |
Instance Method Details
#eq(value) ⇒ Object
132 |
# File 'lib/axhub_sdk/data/dsl/ops.rb', line 132 def eq(value) = _binary(:eq, value) |
#gt(value) ⇒ Object
134 |
# File 'lib/axhub_sdk/data/dsl/ops.rb', line 134 def gt(value) = _binary(:gt, value) |
#gte(value) ⇒ Object
135 |
# File 'lib/axhub_sdk/data/dsl/ops.rb', line 135 def gte(value) = _binary(:gte, value) |
#in_(values) ⇒ Object
139 140 141 |
# File 'lib/axhub_sdk/data/dsl/ops.rb', line 139 def in_(values) { op: :in, column: @name, values: values.to_a } end |
#lt(value) ⇒ Object
136 |
# File 'lib/axhub_sdk/data/dsl/ops.rb', line 136 def lt(value) = _binary(:lt, value) |
#lte(value) ⇒ Object
137 |
# File 'lib/axhub_sdk/data/dsl/ops.rb', line 137 def lte(value) = _binary(:lte, value) |
#ne(value) ⇒ Object
133 |
# File 'lib/axhub_sdk/data/dsl/ops.rb', line 133 def ne(value) = _binary(:ne, value) |