Module: Cassie::Statements::Execution::ClassMethods

Included in:
Core, Cassie::Statements::Execution
Defined in:
lib/cassie/statements/execution.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#result_classObject

The class to use for decorating the Cassandra::Result


46
47
48
49
# File 'lib/cassie/statements/execution.rb', line 46

def result_class
  return @result_class if defined?(@result_class)
  Cassie::Statements::Results::Result
end

Instance Method Details

#inherited(subclass) ⇒ Object


40
41
42
43
# File 'lib/cassie/statements/execution.rb', line 40

def inherited(subclass)
  subclass.result_class = result_class if defined?(@result_class)
  super
end