class Twilio::REST::Api::V2010::AccountContext::AuthorizedConnectAppInstance

Public Class Methods

new(version, payload, account_sid: nil, connect_app_sid: nil) click to toggle source

Initialize the AuthorizedConnectAppInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] account_sid The SID of the

{Account}[https://www.twilio.com/docs/iam/api/account] that created the
AuthorizedConnectApp resource.

@param [String] connect_app_sid The SID of the Connect App to fetch. @return [AuthorizedConnectAppInstance] AuthorizedConnectAppInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
202 def initialize(version, payload, account_sid: nil, connect_app_sid: nil)
203   super(version)
204 
205   # Marshaled Properties
206   @properties = {
207       'account_sid' => payload['account_sid'],
208       'connect_app_company_name' => payload['connect_app_company_name'],
209       'connect_app_description' => payload['connect_app_description'],
210       'connect_app_friendly_name' => payload['connect_app_friendly_name'],
211       'connect_app_homepage_url' => payload['connect_app_homepage_url'],
212       'connect_app_sid' => payload['connect_app_sid'],
213       'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
214       'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
215       'permissions' => payload['permissions'],
216       'uri' => payload['uri'],
217   }
218 
219   # Context
220   @instance_context = nil
221   @params = {
222       'account_sid' => account_sid,
223       'connect_app_sid' => connect_app_sid || @properties['connect_app_sid'],
224   }
225 end

Public Instance Methods

account_sid() click to toggle source

@return [String] The SID of the Account that created the resource

    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
244 def account_sid
245   @properties['account_sid']
246 end
connect_app_company_name() click to toggle source

@return [String] The company name set for the Connect App

    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
250 def connect_app_company_name
251   @properties['connect_app_company_name']
252 end
connect_app_description() click to toggle source

@return [String] A detailed description of the app

    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
256 def connect_app_description
257   @properties['connect_app_description']
258 end
connect_app_friendly_name() click to toggle source

@return [String] The name of the Connect App

    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
262 def connect_app_friendly_name
263   @properties['connect_app_friendly_name']
264 end
connect_app_homepage_url() click to toggle source

@return [String] The public URL for the Connect App

    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
268 def connect_app_homepage_url
269   @properties['connect_app_homepage_url']
270 end
connect_app_sid() click to toggle source

@return [String] The SID that we assigned to the Connect App

    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
274 def connect_app_sid
275   @properties['connect_app_sid']
276 end
context() click to toggle source

Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return [AuthorizedConnectAppContext] AuthorizedConnectAppContext for this AuthorizedConnectAppInstance

    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
231 def context
232   unless @instance_context
233     @instance_context = AuthorizedConnectAppContext.new(
234         @version,
235         @params['account_sid'],
236         @params['connect_app_sid'],
237     )
238   end
239   @instance_context
240 end
date_created() click to toggle source

@return [Time] The RFC 2822 date and time in GMT that the resource was created

    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
280 def date_created
281   @properties['date_created']
282 end
date_updated() click to toggle source

@return [Time] The RFC 2822 date and time in GMT that the resource was last updated

    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
286 def date_updated
287   @properties['date_updated']
288 end
fetch() click to toggle source

Fetch the AuthorizedConnectAppInstance @return [AuthorizedConnectAppInstance] Fetched AuthorizedConnectAppInstance

    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
305 def fetch
306   context.fetch
307 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
318 def inspect
319   values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
320   "<Twilio.Api.V2010.AuthorizedConnectAppInstance #{values}>"
321 end
permissions() click to toggle source

@return [Array] Permissions authorized to the app

    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
292 def permissions
293   @properties['permissions']
294 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
311 def to_s
312   values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
313   "<Twilio.Api.V2010.AuthorizedConnectAppInstance #{values}>"
314 end
uri() click to toggle source

@return [String] The URI of the resource, relative to `api.twilio.com`

    # File lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
298 def uri
299   @properties['uri']
300 end