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.
2241 2242 2243 |
# File 'lib/voruby/adql/adql.rb', line 2241 def initialize(top) self.top = top end |
Instance Attribute Details
#top ⇒ Object
Returns the value of attribute top.
2239 2240 2241 |
# File 'lib/voruby/adql/adql.rb', line 2239 def top @top end |
Class Method Details
.from_xml(node) ⇒ Object
2254 2255 2256 2257 |
# File 'lib/voruby/adql/adql.rb', line 2254 def self.from_xml(node) top = node.attributes['Top'].to_i return SelectionLimit.new(top) end |