Class: ArelExtensions::Nodes::Std
- Inherits:
-
AggregateFunction
- Object
- Arel::Nodes::Function
- Function
- AggregateFunction
- ArelExtensions::Nodes::Std
- Defined in:
- lib/arel_extensions/nodes/std.rb
Constant Summary collapse
- RETURN_TYPE =
:number
Instance Attribute Summary collapse
-
#unbiased_estimator ⇒ Object
Returns the value of attribute unbiased_estimator.
Attributes inherited from AggregateFunction
Instance Method Summary collapse
-
#initialize(node, opts = {}) ⇒ Std
constructor
A new instance of Std.
Methods inherited from Function
#!=, #==, #as, #convert_to_date_node, #convert_to_datetime_node, #convert_to_node, #convert_to_number, #convert_to_string_node, #expr, #left, #return_type, #right, #type_of_attribute
Methods included from Predications
#cast, #convert_to_node, #imatches, #in, #matches, #not_in, #when
Constructor Details
#initialize(node, opts = {}) ⇒ Std
Returns a new instance of Std.
7 8 9 10 |
# File 'lib/arel_extensions/nodes/std.rb', line 7 def initialize node, opts = {} @unbiased_estimator = opts[:unbiased] ? true : false super node, opts end |
Instance Attribute Details
#unbiased_estimator ⇒ Object
Returns the value of attribute unbiased_estimator.
5 6 7 |
# File 'lib/arel_extensions/nodes/std.rb', line 5 def unbiased_estimator @unbiased_estimator end |