Class: CqlRuby::CqlRelation
- Defined in:
- lib/cql_ruby/cql_nodes.rb
Instance Attribute Summary collapse
-
#modifier_set ⇒ Object
Returns the value of attribute modifier_set.
Instance Method Summary collapse
-
#initialize(base) ⇒ CqlRelation
constructor
A new instance of CqlRelation.
- #set_modifiers(ms) ⇒ Object
- #to_cql ⇒ Object
- #to_xcql(xml = nil, prefixes = nil, sortkeys = nil) ⇒ Object
Methods inherited from CqlNode
#check_xml, #getResultSetName, #render_prefixes, #render_sortkeys, #to_solr
Constructor Details
#initialize(base) ⇒ CqlRelation
Returns a new instance of CqlRelation.
273 274 275 276 |
# File 'lib/cql_ruby/cql_nodes.rb', line 273 def initialize( base ) super() @modifier_set = ModifierSet.new( base ) end |
Instance Attribute Details
#modifier_set ⇒ Object
Returns the value of attribute modifier_set.
271 272 273 |
# File 'lib/cql_ruby/cql_nodes.rb', line 271 def modifier_set @modifier_set end |
Instance Method Details
#set_modifiers(ms) ⇒ Object
278 279 280 |
# File 'lib/cql_ruby/cql_nodes.rb', line 278 def set_modifiers( ms ) @modifier_set = ms end |
#to_cql ⇒ Object
288 289 290 |
# File 'lib/cql_ruby/cql_nodes.rb', line 288 def to_cql @modifier_set.to_cql() end |
#to_xcql(xml = nil, prefixes = nil, sortkeys = nil) ⇒ Object
282 283 284 285 286 |
# File 'lib/cql_ruby/cql_nodes.rb', line 282 def to_xcql( xml=nil, prefixes=nil, sortkeys=nil ) raise CqlException, "CqlRelation.to_xcql called with no relation" if sortkeys xml = check_xml( xml ) @modifier_set.to_xcql( xml, "relation" ) end |