class RoxClient::RSpec::TestPayload

Public Class Methods

new(run) click to toggle source
# File lib/rox-client-rspec/test_payload.rb, line 10
def initialize run
  @run = run
end

Public Instance Methods

to_h(options = {}) click to toggle source
# File lib/rox-client-rspec/test_payload.rb, line 14
def to_h options = {}
  case options[:version]
  when 0
    { 'r' => [ @run.to_h(options) ] }
  else # version 1 by default
    @run.to_h options
  end
end