Class: QueryBuilder::Core::Base Abstract

Inherits:
Object
  • Object
show all
Extended by:
AttributesDSL
Defined in:
lib/query_builder/core/base.rb

Overview

This class is abstract.

The abstract base class for all nodes of AST: statemens, clauses, operators

Declares common attributes, ‘#initializer`, and `#to_s` instance methods.

Direct Known Subclasses

Clause, Statement

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Base

Initializes the instance

Parameters:

  • attributes (Hash) (defaults to: {})

    The custom attributes of the instance



20
21
22
23
# File 'lib/query_builder/core/base.rb', line 20

def initialize(_attributes = {})
  super
  IceNine.deep_freeze(self)
end

Instance Method Details

#to_sString

This method is abstract.

Returns the current chunk of CQL statement

Returns:

  • (String)


32
33
34
# File 'lib/query_builder/core/base.rb', line 32

def to_s
  ""
end