Module: AWS::Record::Conversion
- Defined in:
- lib/aws/record/conversion.rb
Instance Method Summary collapse
Instance Method Details
#to_key ⇒ Object
26 27 28 |
# File 'lib/aws/record/conversion.rb', line 26 def to_key persisted? ? [id] : nil end |
#to_model ⇒ Object
21 22 23 |
# File 'lib/aws/record/conversion.rb', line 21 def to_model self end |
#to_param ⇒ Object
31 32 33 |
# File 'lib/aws/record/conversion.rb', line 31 def to_param persisted? ? to_key.join('-') : nil end |