Class: Surus::JSON::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/surus/json/query.rb

Direct Known Subclasses

ArrayAggQuery, RowQuery

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original_scope, options = {}) ⇒ Query

Returns a new instance of Query.



7
8
9
10
# File 'lib/surus/json/query.rb', line 7

def initialize(original_scope, options={})
  @original_scope = original_scope
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/surus/json/query.rb', line 5

def options
  @options
end

#original_scopeObject (readonly)

Returns the value of attribute original_scope.



4
5
6
# File 'lib/surus/json/query.rb', line 4

def original_scope
  @original_scope
end