Class: Rosetta::Translated::Delete
- Inherits:
-
Object
- Object
- Rosetta::Translated::Delete
- Defined in:
- lib/rosetta/translated/delete.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(record, locale) ⇒ Delete
constructor
A new instance of Delete.
- #save ⇒ Object
Constructor Details
#initialize(record, locale) ⇒ Delete
Returns a new instance of Delete.
5 6 7 8 9 |
# File 'lib/rosetta/translated/delete.rb', line 5 def initialize(record, locale) @record = record @locale = locale @content = nil end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
3 4 5 |
# File 'lib/rosetta/translated/delete.rb', line 3 def content @content end |
Instance Method Details
#save ⇒ Object
11 12 13 |
# File 'lib/rosetta/translated/delete.rb', line 11 def save @record.public_send(:"#{@locale.code}_translation=", nil) end |