Class: VORuby::ADQL::AggregateFunctionName
- Defined in:
- lib/voruby/adql/adql.rb,
lib/voruby/adql/transforms.rb
Overview
Enumeration of allowed aggregate functions.
Constant Summary collapse
- @@values =
['AVG', 'MIN', 'MAX', 'SUM', 'COUNT']
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
-
#values_list ⇒ Object
readonly
Returns the value of attribute values_list.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value, values_list = nil) ⇒ AggregateFunctionName
constructor
A new instance of AggregateFunctionName.
- #to_adqls ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(value, values_list = nil) ⇒ AggregateFunctionName
Returns a new instance of AggregateFunctionName.
698 699 700 701 |
# File 'lib/voruby/adql/adql.rb', line 698 def initialize(value, values_list=nil) @values_list = values_list || @@values self.value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
694 695 696 |
# File 'lib/voruby/adql/adql.rb', line 694 def value @value end |
#values_list ⇒ Object (readonly)
Returns the value of attribute values_list.
694 695 696 |
# File 'lib/voruby/adql/adql.rb', line 694 def values_list @values_list end |
Class Method Details
.from_xml(node) ⇒ Object
716 717 718 |
# File 'lib/voruby/adql/adql.rb', line 716 def self.from_xml(node) return AggregateFunctionName.new(node.attributes['Name']) end |