Class: VORuby::ADQL::SelectionLimit
- Defined in:
- lib/voruby/adql/adql.rb,
lib/voruby/adql/transforms.rb
Overview
Represents the TOP part of a query.
Instance Attribute Summary collapse
-
#top ⇒ Object
Returns the value of attribute top.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(top) ⇒ SelectionLimit
constructor
A new instance of SelectionLimit.
- #to_adqls ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(top) ⇒ SelectionLimit
Returns a new instance of SelectionLimit.
2189 2190 2191 |
# File 'lib/voruby/adql/adql.rb', line 2189 def initialize(top) self.top = top end |
Instance Attribute Details
#top ⇒ Object
Returns the value of attribute top.
2187 2188 2189 |
# File 'lib/voruby/adql/adql.rb', line 2187 def top @top end |
Class Method Details
.from_xml(node) ⇒ Object
2202 2203 2204 2205 |
# File 'lib/voruby/adql/adql.rb', line 2202 def self.from_xml(node) top = node.attributes['Top'].to_i return SelectionLimit.new(top) end |