Module: OrientDB::AR::Conversion
- Defined in:
- lib/orientdb-ar/conversion.rb
Instance Method Summary collapse
Instance Method Details
#to_key ⇒ Object
8 9 10 |
# File 'lib/orientdb-ar/conversion.rb', line 8 def to_key persisted? ? @odocument.rid.split(':') : nil end |
#to_model ⇒ Object
4 5 6 |
# File 'lib/orientdb-ar/conversion.rb', line 4 def to_model self end |
#to_param ⇒ Object
12 13 14 |
# File 'lib/orientdb-ar/conversion.rb', line 12 def to_param persisted? ? to_key.join('-') : nil end |