Class: Sleek::QueryCollection

Inherits:
Object
  • Object
show all
Defined in:
lib/sleek/query_collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespace) ⇒ QueryCollection

Inernal: Initialize query collection.

namespace - the Sleek::Namespace object.



8
9
10
# File 'lib/sleek/query_collection.rb', line 8

def initialize(namespace)
  @namespace = namespace
end

Instance Attribute Details

#namespaceObject (readonly)

Returns the value of attribute namespace.



3
4
5
# File 'lib/sleek/query_collection.rb', line 3

def namespace
  @namespace
end

Instance Method Details

#inspectObject



21
22
23
# File 'lib/sleek/query_collection.rb', line 21

def inspect
  "#<Sleek::QueryCollection ns=#{namespace.name}>"
end