Class: ParamsReady::Query::GroupingOperatorCoder
Class Method Summary
collapse
instance
#strict_default?, #try_coerce
value_class_name
#class_reader_writer
Class Method Details
.coerce(value, _) ⇒ Object
106
107
108
109
110
111
|
# File 'lib/params_ready/query/grouping.rb', line 106
def self.coerce(value, _)
return value if value.is_a? GroupingOperator
symbol = super
GroupingOperator.instance(symbol)
end
|
113
114
115
|
# File 'lib/params_ready/query/grouping.rb', line 113
def self.format(value, _)
value.type.to_s
end
|
.strict_default? ⇒ Boolean
117
118
119
|
# File 'lib/params_ready/query/grouping.rb', line 117
def self.strict_default?
false
end
|