Skip to content
Craig Little edited this page Jan 3, 2014 · 1 revision

All responses are wrapped in a hashie-like object that is accessible in a number of ways.

raw_response = {
  request_id: 1,
  signer: {
    name:          'David Bowman',
    email_address: '[email protected]'
  }
}

response = HelloSign::Response.new(raw_response)

response[:request_id]  # => 1
response['request_id'] # => 1
response.request_id    # => 1

response.signer.name            # => 'David Bowman'
response.signer[:email_address] # => '[email protected]'
Clone this wiki locally