Class: Locomotive::Wagon::TranslationDecorator

Inherits:
SimpleDelegator
  • Object
show all
Includes:
ToHashConcern
Defined in:
lib/locomotive/wagon/decorators/translation_decorator.rb

Instance Method Summary collapse

Methods included from ToHashConcern

#prepare_value_for_hash, #to_hash

Instance Method Details

#__attributes__Object



12
13
14
# File 'lib/locomotive/wagon/decorators/translation_decorator.rb', line 12

def __attributes__
  %i(key values)
end

#idObject



8
9
10
# File 'lib/locomotive/wagon/decorators/translation_decorator.rb', line 8

def id
  key
end