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
Attributes included from Statement
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Object
Create a new statement-based object, sending all options passed as a hash to attribute setters Similar to ActiveModel::Model initialization.
Methods included from Execution::ClassMethods
Methods included from Execution
#execute, #execute!, #execution_options
Methods included from Execution::Instrumentation
Methods included from Execution::PartitionLinking
#build_partition_linker, #execute, #partition_linker?
Methods included from Execution::Callbacks
Methods included from Execution::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
Methods included from Statement::TypeHinting::ClassMethods
Methods included from Statement::TypeHinting
Methods included from Statement::Preparation
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 |