Module: Objectified
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/objectified.rb,
lib/objectified/version.rb
Overview
include this module to have resource based, meta programming variables.
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- VERSION =
"0.1.3"
Class Method Summary collapse
Instance Method Summary collapse
- #base_klass_string ⇒ Object
- #object_klass_for(object_type) ⇒ Object
- #record_instance_variable_name(namespace: false) ⇒ Object
-
#records_instance_variable_name(namespace: false) ⇒ Object
Instance Extensions of Class Methods.
- #records_klass ⇒ Object
- #resource_klass_string ⇒ Object
- #resources_klass_string ⇒ Object
Class Method Details
.included(base) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/objectified.rb', line 14 def self.included(base) base.class_eval do extend ClassMethods def self.inherited(subclass) super subclass.object_type(object_type_string) end end end |
Instance Method Details
#base_klass_string ⇒ Object
208 209 210 |
# File 'lib/objectified.rb', line 208 def base_klass_string self.class.base_klass_string end |
#object_klass_for(object_type) ⇒ Object
220 221 222 |
# File 'lib/objectified.rb', line 220 def object_klass_for(object_type) self.class.object_klass_for(object_type) end |
#record_instance_variable_name(namespace: false) ⇒ Object
200 201 202 |
# File 'lib/objectified.rb', line 200 def record_instance_variable_name(namespace: false) self.class.record_instance_variable_name(namespace: namespace) end |
#records_instance_variable_name(namespace: false) ⇒ Object
Instance Extensions of Class Methods
196 197 198 |
# File 'lib/objectified.rb', line 196 def records_instance_variable_name(namespace: false) self.class.records_instance_variable_name(namespace: namespace) end |
#records_klass ⇒ Object
204 205 206 |
# File 'lib/objectified.rb', line 204 def records_klass self.class.records_klass end |
#resource_klass_string ⇒ Object
212 213 214 |
# File 'lib/objectified.rb', line 212 def resource_klass_string self.class.resource_klass_string end |
#resources_klass_string ⇒ Object
216 217 218 |
# File 'lib/objectified.rb', line 216 def resources_klass_string self.class.resources_klass_string end |