Sha256: 1ee8b5e911217f8593085d46aa12b29297f7b28652b271e390cdcbb5eeb13707

Contents?: true

Size: 721 Bytes

Versions: 1

Compression:

Stored size: 721 Bytes

Contents

# encoding: utf-8

module QueryBuilder::Core

  # The abstract base class for all nodes of AST: statemens, clauses, operators
  #
  # Declares common attributes, `#initializer`, and `#to_s` instance methods.
  #
  # @abstract
  #
  class Base

    extend AttributesDSL

    # @!method initialize(attributes = {})
    # Initializes the instance
    #
    # @param [Hash] attributes The custom attributes of the instance
    #
    def initialize(_attributes = {})
      super
      IceNine.deep_freeze(self)
    end

    # @!method to_s
    # Returns the current chunk of CQL statement
    #
    # @return [String]
    #
    # @abstract
    #
    def to_s
      ""
    end

  end # class Base

end # module CQLBuiler::Core

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
query_builder-0.0.4 lib/query_builder/core/base.rb