Method: Cuboid::Report#to_h

Defined in:
lib/cuboid/report.rb

#to_hHash Also known as: to_hash

Returns Hash representation of ‘self`.

Returns:

  • (Hash)

    Hash representation of ‘self`.



135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'lib/cuboid/report.rb', line 135

def to_h
    h = {
        application:     @application,
        version:         @version,
        status:          @status,
        seed:            @seed,
        data:            @data,
        options:         Cuboid::Options.hash_to_rpc_data( @options ),
        start_datetime:  @start_datetime.to_s,
        finish_datetime: @finish_datetime.to_s,
        delta_time:      delta_time
    }
end