Class: MongoidSerializableModel
- Inherits:
-
Object
- Object
- MongoidSerializableModel
- Includes:
- GlobalID::Identification
- Defined in:
- app/models/mongoid_serializable_model.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(model) ⇒ MongoidSerializableModel
constructor
A new instance of MongoidSerializableModel.
- #to_global_id ⇒ Object
Constructor Details
#initialize(model) ⇒ MongoidSerializableModel
Returns a new instance of MongoidSerializableModel.
8 9 10 |
# File 'app/models/mongoid_serializable_model.rb', line 8 def initialize(model) @model = model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
4 5 6 |
# File 'app/models/mongoid_serializable_model.rb', line 4 def model @model end |
Instance Method Details
#to_global_id ⇒ Object
12 13 14 |
# File 'app/models/mongoid_serializable_model.rb', line 12 def to_global_id model.to_global_id end |