Method: Cuboid::Report#to_crf
- Defined in:
- lib/cuboid/report.rb
#to_crf ⇒ String
Returns Report serialized in the Cuboid Report format.
115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/cuboid/report.rb', line 115 def to_crf crf = RPC::Serializer.dump( self ) sum = summary sum[:application] = sum[:application].to_s # Append metadata to the end of the dump. = RPC::Serializer.dump( sum ) crf << [, .size].pack( "a*#{UNPACK}" ) crf end |