Method: Twilio::REST::Oauth::V1::AuthorizeInstance#initialize

Defined in:
lib/twilio-ruby/rest/oauth/v1/authorize.rb

#initialize(version, payload) ⇒ AuthorizeInstance

Initialize the AuthorizeInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • account_sid (String)

    The SID of the Account that created this Authorize resource.

  • sid (String)

    The SID of the Call resource to fetch.



116
117
118
119
120
121
122
123
# File 'lib/twilio-ruby/rest/oauth/v1/authorize.rb', line 116

def initialize(version, payload )
    super(version)
    
    # Marshaled Properties
    @properties = { 
        'redirect_to' => payload['redirect_to'],
    }
end