Module: AWS::Record::Conversion

Defined in:
lib/aws/record/conversion.rb

Instance Method Summary collapse

Instance Method Details

#to_keyObject


26
27
28
# File 'lib/aws/record/conversion.rb', line 26

def to_key
  persisted? ? [id] : nil
end

#to_modelObject


21
22
23
# File 'lib/aws/record/conversion.rb', line 21

def to_model
  self
end

#to_paramObject


31
32
33
# File 'lib/aws/record/conversion.rb', line 31

def to_param
  persisted? ? to_key.join('-') : nil
end