Class: Twilio::REST::Oauth::V2::AuthorizeInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Oauth::V2::AuthorizeInstance
- Defined in:
- lib/twilio-ruby/rest/oauth/v2/authorize.rb
Instance Method Summary collapse
-
#initialize(version, payload) ⇒ AuthorizeInstance
constructor
Initialize the AuthorizeInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#redirect_to ⇒ String
The callback URL.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload) ⇒ AuthorizeInstance
Initialize the AuthorizeInstance
232 233 234 235 236 237 238 239 240 |
# File 'lib/twilio-ruby/rest/oauth/v2/authorize.rb', line 232 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'redirect_to' => payload['redirect_to'], } end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
257 258 259 |
# File 'lib/twilio-ruby/rest/oauth/v2/authorize.rb', line 257 def inspect "<Twilio.Oauth.V2.AuthorizeInstance>" end |
#redirect_to ⇒ String
Returns The callback URL.
245 246 247 |
# File 'lib/twilio-ruby/rest/oauth/v2/authorize.rb', line 245 def redirect_to @properties['redirect_to'] end |
#to_s ⇒ Object
Provide a user friendly representation
251 252 253 |
# File 'lib/twilio-ruby/rest/oauth/v2/authorize.rb', line 251 def to_s "<Twilio.Oauth.V2.AuthorizeInstance>" end |