Class: LcpRuby::Dsl::FieldConditionProxy
- Inherits:
-
Object
- Object
- LcpRuby::Dsl::FieldConditionProxy
- Defined in:
- lib/lcp_ruby/dsl/condition_builder.rb
Instance Method Summary collapse
- #blank ⇒ Object
- #contains(value) ⇒ Object
- #ends_with(value) ⇒ Object
- #eq(value) ⇒ Object
- #gt(value) ⇒ Object
- #gte(value) ⇒ Object
- #in(*values) ⇒ Object
-
#initialize(field_name, builder) ⇒ FieldConditionProxy
constructor
A new instance of FieldConditionProxy.
- #lt(value) ⇒ Object
- #lte(value) ⇒ Object
- #matches(value) ⇒ Object
- #not_eq(value) ⇒ Object
- #not_in(*values) ⇒ Object
- #not_matches(value) ⇒ Object
- #present ⇒ Object
- #starts_with(value) ⇒ Object
Constructor Details
#initialize(field_name, builder) ⇒ FieldConditionProxy
Returns a new instance of FieldConditionProxy.
99 100 101 102 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 99 def initialize(field_name, builder) @field_name = field_name @builder = builder end |
Instance Method Details
#blank ⇒ Object
142 143 144 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 142 def blank emit_no_value("blank") end |
#contains(value) ⇒ Object
154 155 156 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 154 def contains(value) emit("contains", value) end |
#ends_with(value) ⇒ Object
150 151 152 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 150 def ends_with(value) emit("ends_with", value) end |
#eq(value) ⇒ Object
104 105 106 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 104 def eq(value) emit("eq", value) end |
#gt(value) ⇒ Object
112 113 114 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 112 def gt(value) emit("gt", value) end |
#gte(value) ⇒ Object
116 117 118 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 116 def gte(value) emit("gte", value) end |
#in(*values) ⇒ Object
128 129 130 131 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 128 def in(*values) values = values.flatten emit("in", values) end |
#lt(value) ⇒ Object
120 121 122 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 120 def lt(value) emit("lt", value) end |
#lte(value) ⇒ Object
124 125 126 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 124 def lte(value) emit("lte", value) end |
#matches(value) ⇒ Object
158 159 160 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 158 def matches(value) emit("matches", value) end |
#not_eq(value) ⇒ Object
108 109 110 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 108 def not_eq(value) emit("not_eq", value) end |
#not_in(*values) ⇒ Object
133 134 135 136 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 133 def not_in(*values) values = values.flatten emit("not_in", values) end |
#not_matches(value) ⇒ Object
162 163 164 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 162 def not_matches(value) emit("not_matches", value) end |
#present ⇒ Object
138 139 140 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 138 def present emit_no_value("present") end |
#starts_with(value) ⇒ Object
146 147 148 |
# File 'lib/lcp_ruby/dsl/condition_builder.rb', line 146 def starts_with(value) emit("starts_with", value) end |