Class: Twilio::REST::Api::V2010::AccountContext::AuthorizedConnectAppInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::AuthorizedConnectAppInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the Account that created the resource.
-
#connect_app_company_name ⇒ String
The company name set for the Connect App.
-
#connect_app_description ⇒ String
A detailed description of the app.
-
#connect_app_friendly_name ⇒ String
The name of the Connect App.
-
#connect_app_homepage_url ⇒ String
The public URL for the Connect App.
-
#connect_app_sid ⇒ String
The SID that we assigned to the Connect App.
-
#context ⇒ AuthorizedConnectAppContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#date_created ⇒ Time
The RFC 2822 date and time in GMT that the resource was created.
-
#date_updated ⇒ Time
The RFC 2822 date and time in GMT that the resource was last updated.
-
#fetch ⇒ AuthorizedConnectAppInstance
Fetch a AuthorizedConnectAppInstance.
-
#initialize(version, payload, account_sid: nil, connect_app_sid: nil) ⇒ AuthorizedConnectAppInstance
constructor
Initialize the AuthorizedConnectAppInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#permissions ⇒ authorized_connect_app.Permission
Permissions authorized to the app.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#uri ⇒ String
The URI of the resource, relative to ‘api.twilio.com`.
Constructor Details
#initialize(version, payload, account_sid: nil, connect_app_sid: nil) ⇒ AuthorizedConnectAppInstance
Initialize the AuthorizedConnectAppInstance
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 210 def initialize(version, payload, account_sid: nil, connect_app_sid: nil) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'connect_app_company_name' => payload['connect_app_company_name'], 'connect_app_description' => payload['connect_app_description'], 'connect_app_friendly_name' => payload['connect_app_friendly_name'], 'connect_app_homepage_url' => payload['connect_app_homepage_url'], 'connect_app_sid' => payload['connect_app_sid'], 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']), 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']), 'permissions' => payload['permissions'], 'uri' => payload['uri'], } # Context @instance_context = nil @params = { 'account_sid' => account_sid, 'connect_app_sid' => connect_app_sid || @properties['connect_app_sid'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the Account that created the resource.
252 253 254 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 252 def account_sid @properties['account_sid'] end |
#connect_app_company_name ⇒ String
Returns The company name set for the Connect App.
258 259 260 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 258 def connect_app_company_name @properties['connect_app_company_name'] end |
#connect_app_description ⇒ String
Returns A detailed description of the app.
264 265 266 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 264 def connect_app_description @properties['connect_app_description'] end |
#connect_app_friendly_name ⇒ String
Returns The name of the Connect App.
270 271 272 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 270 def connect_app_friendly_name @properties['connect_app_friendly_name'] end |
#connect_app_homepage_url ⇒ String
Returns The public URL for the Connect App.
276 277 278 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 276 def connect_app_homepage_url @properties['connect_app_homepage_url'] end |
#connect_app_sid ⇒ String
Returns The SID that we assigned to the Connect App.
282 283 284 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 282 def connect_app_sid @properties['connect_app_sid'] end |
#context ⇒ AuthorizedConnectAppContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
239 240 241 242 243 244 245 246 247 248 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 239 def context unless @instance_context @instance_context = AuthorizedConnectAppContext.new( @version, @params['account_sid'], @params['connect_app_sid'], ) end @instance_context end |
#date_created ⇒ Time
Returns The RFC 2822 date and time in GMT that the resource was created.
288 289 290 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 288 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The RFC 2822 date and time in GMT that the resource was last updated.
294 295 296 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 294 def date_updated @properties['date_updated'] end |
#fetch ⇒ AuthorizedConnectAppInstance
Fetch a AuthorizedConnectAppInstance
313 314 315 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 313 def fetch context.fetch end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
326 327 328 329 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 326 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Api.V2010.AuthorizedConnectAppInstance #{values}>" end |
#permissions ⇒ authorized_connect_app.Permission
Returns Permissions authorized to the app.
300 301 302 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 300 def @properties['permissions'] end |
#to_s ⇒ Object
Provide a user friendly representation
319 320 321 322 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 319 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Api.V2010.AuthorizedConnectAppInstance #{values}>" end |
#uri ⇒ String
Returns The URI of the resource, relative to ‘api.twilio.com`.
306 307 308 |
# File 'lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb', line 306 def uri @properties['uri'] end |