Class: Predicated::GreaterThanOrEqualTo

Inherits:
Operation show all
Defined in:
lib/predicated/to/xml.rb,
lib/predicated/to/arel.rb,
lib/predicated/to/json.rb,
lib/predicated/to/solr.rb,
lib/predicated/evaluate.rb,
lib/predicated/predicate.rb

Instance Attribute Summary

Attributes inherited from Operation

#method_sym

Attributes inherited from Binary

#left, #right

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Operation

#==, #evaluate, #fill_in, register_verb_phrase, reset_verb_phrases, #to_arel, #to_json_struct, #to_negative_sentence, #to_s, #to_sentence, #to_xml

Methods included from JsonStructToJsonStr

#to_json_str

Methods inherited from Binary

#to_s

Methods included from Binary::ValueEquality

#==

Methods included from Binary::FlipThroughMe

#each

Methods included from PrintSupport

#inspect

Methods inherited from Predicate

from_callable_object, from_json_str, from_json_struct, from_ruby_code_string, from_url_part, from_xml

Constructor Details

#initialize(left, right) ⇒ GreaterThanOrEqualTo

Returns a new instance of GreaterThanOrEqualTo.



29
# File 'lib/predicated/evaluate.rb', line 29

def initialize(left, right); super(left, :>=, right); end

Class Method Details

.shorthandObject



89
# File 'lib/predicated/predicate.rb', line 89

def self.shorthand; :Gte end

Instance Method Details

#arel_classObject



38
# File 'lib/predicated/to/arel.rb', line 38

def arel_class; Arel::Predicates::GreaterThanOrEqualTo end

#to_solrObject



12
# File 'lib/predicated/to/solr.rb', line 12

def to_solr; "#{left}:[#{right} TO *]" end