Module: CassandraObject::AttributeMethods::ClassMethods
- Defined in:
- lib/cassandra_object/attribute_methods.rb
Instance Method Summary collapse
- #attribute_methods_generated? ⇒ Boolean
- #define_attribute_methods ⇒ Object
- #inherited(child_class) ⇒ Object
Instance Method Details
#attribute_methods_generated? ⇒ Boolean
37 38 39 |
# File 'lib/cassandra_object/attribute_methods.rb', line 37 def attribute_methods_generated? @attribute_methods_generated ||= false end |
#define_attribute_methods ⇒ Object
31 32 33 34 35 |
# File 'lib/cassandra_object/attribute_methods.rb', line 31 def define_attribute_methods return if attribute_methods_generated? super(attribute_definitions.keys) @attribute_methods_generated = true end |
#inherited(child_class) ⇒ Object
26 27 28 29 |
# File 'lib/cassandra_object/attribute_methods.rb', line 26 def inherited(child_class) child_class.define_attribute_methods super end |