Module: Jacoat::Representable
- Defined in:
- lib/jacoat/representable.rb,
lib/jacoat/representable/has_one.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods Classes: HasOne
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/jacoat/representable.rb', line 8 def type @type end |
Class Method Details
.included(base) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/jacoat/representable.rb', line 10 def self.included(base) base.class_eval do include ::Representable include ::Representable::JSON extend ClassMethods include InstanceMethods end end |