Class: VORuby::ADQL::MathFunctionName
- Defined in:
- lib/voruby/adql/adql.rb,
lib/voruby/adql/transforms.rb
Overview
Enumeration of allowed math functions.
Constant Summary collapse
- @@values =
['ABS', 'CEILING', 'DEGREES', 'EXP', 'FLOOR', 'LOG', 'PI', 'POWER', 'RADIANS', 'SQRT', 'SQUARE', 'LOG10', 'RAND', 'ROUND', 'TRUNCATE']
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) ⇒ MathFunctionName
constructor
A new instance of MathFunctionName.
- #to_adqls ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(value, values_list = nil) ⇒ MathFunctionName
Returns a new instance of MathFunctionName.
622 623 624 625 |
# File 'lib/voruby/adql/adql.rb', line 622 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.
616 617 618 |
# File 'lib/voruby/adql/adql.rb', line 616 def value @value end |
#values_list ⇒ Object (readonly)
Returns the value of attribute values_list.
616 617 618 |
# File 'lib/voruby/adql/adql.rb', line 616 def values_list @values_list end |
Class Method Details
.from_xml(node) ⇒ Object
640 641 642 |
# File 'lib/voruby/adql/adql.rb', line 640 def self.from_xml(node) return MathFunctionName.new(node.attributes['Name']) end |