Class: Indices::Dsl::Serializer
- Defined in:
- lib/indices/dsl/serializer.rb
Instance Method Summary collapse
Methods inherited from Api
#initialize, #method_missing, #to_h
Constructor Details
This class inherits a constructor from Indices::Dsl::Api
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Indices::Dsl::Api
Instance Method Details
#set(object, *names) ⇒ Object
5 6 7 8 9 |
# File 'lib/indices/dsl/serializer.rb', line 5 def set(object, *names) names.each do |name| send name, object.send(name) end end |
#transliterate(value) ⇒ Object
11 12 13 |
# File 'lib/indices/dsl/serializer.rb', line 11 def transliterate(value) ActiveSupport::Inflector.transliterate value end |