Class: OceanDynamo::Table

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming, Queries, Schema
Includes:
ActiveModel::Model, ActiveModel::Validations::Callbacks, Associations, Attributes, Basal, BelongsTo, HasMany, Persistence, Tables
Defined in:
lib/ocean-dynamo.rb,
lib/ocean-dynamo/class_variables.rb

Instance Attribute Summary

Attributes included from Attributes

#attributes, #destroyed, #new_record

Instance Method Summary collapse

Methods included from Schema

attribute, compute_table_name, define_attribute_accessors, dynamo_schema, global_secondary_index, table_full_name

Methods included from Queries

all, condition_builder, count, find, find_by_key, find_each, find_global, find_global_each, find_local, find_local_each, in_batches

Methods included from HasMany

included, #reload

Methods included from BelongsTo

included, #load_target_from_id, #set_belongs_to_association, #type_check_foreign_key, #type_check_target

Methods included from Associations

included

Methods included from Persistence

#_setup_from_dynamo, #create, #create_or_update, #delete, #destroy, #destroy!, #destroyed?, included, #new_record?, #persisted?, #reload, #save, #save!, #touch, #update, #update_attributes, #update_attributes!, #valid?

Methods included from Attributes

#[], #[]=, #assign_attributes, #hash_key, #id, #id=, #id?, included, #range_key, #read_attribute, #read_attribute_for_validation, #to_key, #type_cast_attribute_for_write, #write_attribute

Methods included from Tables

included

Methods included from Basal

#<=>, #==, #freeze, #frozen?

Constructor Details

#initialize(attrs = {}) ⇒ Table

Returns a new instance of Table.



55
56
57
58
59
# File 'lib/ocean-dynamo.rb', line 55

def initialize(attrs={})
  run_callbacks :initialize do
    super
  end
end