Class: ActiveNode::Base

Inherits:
Object
  • Object
show all
Includes:
ActiveAttr::AttributeDefaults, ActiveAttr::Attributes, ActiveAttr::BasicModel, ActiveAttr::MassAssignment, ActiveAttr::TypecastedAttributes, ActiveModel::Serializers::JSON, Associations, Callbacks, Core, Dirty, Persistence, Reflection, Typecasting, Validations
Defined in:
lib/active_node/base.rb

Constant Summary

Constants included from Callbacks

Callbacks::CALLBACKS

Constants included from Typecasting

Typecasting::EXTENDED_TYPECASTER_MAP

Instance Attribute Summary

Attributes included from Associations

#association_cache

Class Method Summary collapse

Methods included from Core

#==, #hash, #initialize

Methods included from Associations

#association, #clear_association_cache

Methods included from Callbacks

#destroy, #touch

Methods included from Validations

#save, #save!, #valid?

Methods included from Persistence

#[], #[]=, #destroy, #destroy!, #destroyed?, #includes!, #incoming, #initialize, #neo_id, #new_record?, #outgoing, #persisted?, #save, #to_param, #update_attribute, #update_attributes

Methods included from Dirty

#initialize, #save

Methods included from Typecasting

#typecaster_for

Class Method Details

.subclass(klass_name) ⇒ Object



21
22
23
# File 'lib/active_node/base.rb', line 21

def self.subclass(klass_name)
  Class.new(super_class=self) { define_singleton_method(:label) { klass_name } }
end