Module: Cassie::Statements::Core

Includes:
Execution, Execution::ClassMethods, Logging, Statement, Logging::ClassMethods, Statement::ClassMethods
Included in:
Definition, Modification, Query
Defined in:
lib/cassie/statements/core.rb

Instance Attribute Summary

Attributes included from Execution::ClassMethods

#result_class

Attributes included from Statement

#cql, #params

Instance Method Summary collapse

Methods included from Execution::ClassMethods

#inherited

Methods included from Execution

#execute, #execute!, #execution_options

Methods included from Execution::Instrumentation

#execute

Methods included from Execution::PartitionLinking

#build_partition_linker, #execute, #partition_linker?

Methods included from Execution::Callbacks

#execute

Methods included from Execution::Consistency

#consistency

Methods included from Statement

#logger, #statement, #table, #to_cql

Methods included from Statement::Preparation::ClassMethods

#prepare, #prepare=, #prepare?

Methods included from Statement::Idempotency::ClassMethods

#idempotent, #idempotent=, #idempotent?, #non_idempotent

Methods included from Statement::Idempotency

#idempotent, #idempotent?

Methods included from Statement::TypeHinting::ClassMethods

#type_hints, #type_hints=

Methods included from Statement::TypeHinting

#type_hints

Methods included from Statement::Preparation

cache, init_cache, #statement

Instance Method Details

#initialize(params = {}) ⇒ Object

Create a new statement-based object, sending all options passed as a hash to attribute setters Similar to ActiveModel::Model initialization



26
27
28
29
30
31
32
# File 'lib/cassie/statements/core.rb', line 26

def initialize(params={})
  params.each do |attr, value|
    self.public_send("#{attr}=", value)
  end

  super()
end