Class: Sinch::Response::Verification

Inherits:
Base
  • Object
show all
Defined in:
lib/sinch/response/verification.rb

Overview

Sinch API Response For Verification Request

Instance Attribute Summary

Attributes inherited from Base

#response

Instance Method Summary collapse

Instance Method Details

#jsonObject



7
8
9
10
11
12
# File 'lib/sinch/response/verification.rb', line 7

def json
  return {} unless success?

  response_hash = response.parsed_response
  response_hash.merge('request_id' => response_hash['id'])
end