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.



2285
2286
2287
2288
# File 'lib/voruby/adql/adql.rb', line 2285

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.



2281
2282
2283
# File 'lib/voruby/adql/adql.rb', line 2281

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



2299
2300
2301
# File 'lib/voruby/adql/adql.rb', line 2299

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