Class: Sinch::Response::Base

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

Overview

Base Sinch API Response

Direct Known Subclasses

ReportVerification, SendSms, Verification

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#responseObject

Returns the value of attribute response.



7
8
9
# File 'lib/sinch/response/base.rb', line 7

def response
  @response
end

Instance Method Details

#jsonObject



11
12
13
14
# File 'lib/sinch/response/base.rb', line 11

def json
  return {} unless success?
  response.parsed_response.to_json
end