Sha256: 470d3d36172fe9069508368d82cfa38b3de4897e0796ee5f1811e4f7984a6cb9

Contents?: true

Size: 259 Bytes

Versions: 2

Compression:

Stored size: 259 Bytes

Contents

module CQL
  module Queriable

    attr_accessor :query_root


    def query(&block)
      raise(ArgumentError, 'Query cannot be run. No query root has been set.') unless @query_root

      Query.new(@query_root, &block).data
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cql-1.4.0 lib/cql/queriable.rb
cql-1.3.0 lib/cql/queriable.rb