Class: VORuby::ADQL::OrderDirection

Inherits:
Object
  • Object
show all
Defined in:
lib/voruby/adql/adql.rb,
lib/voruby/adql/transforms.rb

Overview

Ascending or Descending order of an Order by term.

Constant Summary collapse

@@options =
['ASC', 'DESC']

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, options_list = nil) ⇒ OrderDirection

Returns a new instance of OrderDirection.



2233
2234
2235
2236
# File 'lib/voruby/adql/adql.rb', line 2233

def initialize(value, options_list=nil)
  @options_list = options_list || @@options
  self.value = value
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



2229
2230
2231
# File 'lib/voruby/adql/adql.rb', line 2229

def value
  @value
end

Instance Method Details

#to_adqlsObject



448
449
450
# File 'lib/voruby/adql/transforms.rb', line 448

def to_adqls
  self.value
end

#to_sObject



2247
2248
2249
# File 'lib/voruby/adql/adql.rb', line 2247

def to_s
  "{value=#{self.value}}"
end