Class: Actions::Helpers::ArgsSerialization::Builder
- Inherits:
-
Object
- Object
- Actions::Helpers::ArgsSerialization::Builder
- Defined in:
- app/lib/actions/helpers/args_serialization.rb
Instance Method Summary collapse
-
#initialize(*objects) ⇒ Builder
constructor
A new instance of Builder.
- #to_h ⇒ Object
Constructor Details
#initialize(*objects) ⇒ Builder
Returns a new instance of Builder.
5 6 7 8 9 10 |
# File 'app/lib/actions/helpers/args_serialization.rb', line 5 def initialize(*objects) @hash = {}.with_indifferent_access objects.each do |object| add_object(object) end end |
Instance Method Details
#to_h ⇒ Object
12 13 14 |
# File 'app/lib/actions/helpers/args_serialization.rb', line 12 def to_h @hash end |