Class: Actions::Helpers::ArgsSerialization::Builder

Inherits:
Object
  • Object
show all
Defined in:
app/lib/actions/helpers/args_serialization.rb

Instance Method Summary collapse

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_hObject



12
13
14
# File 'app/lib/actions/helpers/args_serialization.rb', line 12

def to_h
  @hash
end