Class: Twilio::REST::Trusthub::V1::TrustProductsInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Trusthub::V1::TrustProductsInstance
- Defined in:
- lib/twilio-ruby/rest/trusthub/v1/trust_products.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the Account that created the resource.
-
#context ⇒ TrustProductsContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#date_created ⇒ Time
The ISO 8601 date and time in GMT when the resource was created.
-
#date_updated ⇒ Time
The ISO 8601 date and time in GMT when the resource was last updated.
-
#delete ⇒ Boolean
Delete the TrustProductsInstance.
-
#email ⇒ String
The email address.
-
#fetch ⇒ TrustProductsInstance
Fetch the TrustProductsInstance.
-
#friendly_name ⇒ String
The string that you assigned to describe the resource.
-
#initialize(version, payload, sid: nil) ⇒ TrustProductsInstance
constructor
Initialize the TrustProductsInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#links ⇒ String
The URLs of the Assigned Items of the Customer-Profile resource.
-
#policy_sid ⇒ String
The unique string of a policy.
-
#sid ⇒ String
The unique string that identifies the resource.
-
#status ⇒ trust_products.Status
The verification status of the Customer-Profile resource.
-
#status_callback ⇒ String
The URL we call to inform your application of status changes.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#trust_products_channel_endpoint_assignment ⇒ trust_products_channel_endpoint_assignment
Access the trust_products_channel_endpoint_assignment.
-
#trust_products_entity_assignments ⇒ trust_products_entity_assignments
Access the trust_products_entity_assignments.
-
#trust_products_evaluations ⇒ trust_products_evaluations
Access the trust_products_evaluations.
-
#update(status: :unset, status_callback: :unset, friendly_name: :unset, email: :unset) ⇒ TrustProductsInstance
Update the TrustProductsInstance.
-
#url ⇒ String
The absolute URL of the Customer-Profile resource.
-
#valid_until ⇒ Time
The ISO 8601 date and time in GMT when the resource will be valid until.
Constructor Details
#initialize(version, payload, sid: nil) ⇒ TrustProductsInstance
Initialize the TrustProductsInstance
344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 344 def initialize(version, payload, sid: nil) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'account_sid' => payload['account_sid'], 'policy_sid' => payload['policy_sid'], 'friendly_name' => payload['friendly_name'], 'status' => payload['status'], 'valid_until' => Twilio.deserialize_iso8601_datetime(payload['valid_until']), 'email' => payload['email'], 'status_callback' => payload['status_callback'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 'url' => payload['url'], 'links' => payload['links'], } # Context @instance_context = nil @params = {'sid' => sid || @properties['sid'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the Account that created the resource.
387 388 389 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 387 def account_sid @properties['account_sid'] end |
#context ⇒ TrustProductsContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
372 373 374 375 376 377 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 372 def context unless @instance_context @instance_context = TrustProductsContext.new(@version, @params['sid'], ) end @instance_context end |
#date_created ⇒ Time
Returns The ISO 8601 date and time in GMT when the resource was created.
429 430 431 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 429 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The ISO 8601 date and time in GMT when the resource was last updated.
435 436 437 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 435 def date_updated @properties['date_updated'] end |
#delete ⇒ Boolean
Delete the TrustProductsInstance
481 482 483 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 481 def delete context.delete end |
#email ⇒ String
Returns The email address.
417 418 419 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 417 def email @properties['email'] end |
#fetch ⇒ TrustProductsInstance
Fetch the TrustProductsInstance
454 455 456 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 454 def fetch context.fetch end |
#friendly_name ⇒ String
Returns The string that you assigned to describe the resource.
399 400 401 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 399 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
515 516 517 518 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 515 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Trusthub.V1.TrustProductsInstance #{values}>" end |
#links ⇒ String
Returns The URLs of the Assigned Items of the Customer-Profile resource.
447 448 449 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 447 def links @properties['links'] end |
#policy_sid ⇒ String
Returns The unique string of a policy.
393 394 395 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 393 def policy_sid @properties['policy_sid'] end |
#sid ⇒ String
Returns The unique string that identifies the resource.
381 382 383 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 381 def sid @properties['sid'] end |
#status ⇒ trust_products.Status
Returns The verification status of the Customer-Profile resource.
405 406 407 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 405 def status @properties['status'] end |
#status_callback ⇒ String
Returns The URL we call to inform your application of status changes.
423 424 425 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 423 def status_callback @properties['status_callback'] end |
#to_s ⇒ Object
Provide a user friendly representation
508 509 510 511 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 508 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Trusthub.V1.TrustProductsInstance #{values}>" end |
#trust_products_channel_endpoint_assignment ⇒ trust_products_channel_endpoint_assignment
Access the trust_products_channel_endpoint_assignment
502 503 504 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 502 def trust_products_channel_endpoint_assignment context.trust_products_channel_endpoint_assignment end |
#trust_products_entity_assignments ⇒ trust_products_entity_assignments
Access the trust_products_entity_assignments
488 489 490 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 488 def trust_products_entity_assignments context.trust_products_entity_assignments end |
#trust_products_evaluations ⇒ trust_products_evaluations
Access the trust_products_evaluations
495 496 497 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 495 def trust_products_evaluations context.trust_products_evaluations end |
#update(status: :unset, status_callback: :unset, friendly_name: :unset, email: :unset) ⇒ TrustProductsInstance
Update the TrustProductsInstance
469 470 471 472 473 474 475 476 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 469 def update(status: :unset, status_callback: :unset, friendly_name: :unset, email: :unset) context.update( status: status, status_callback: status_callback, friendly_name: friendly_name, email: email, ) end |
#url ⇒ String
Returns The absolute URL of the Customer-Profile resource.
441 442 443 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 441 def url @properties['url'] end |
#valid_until ⇒ Time
Returns The ISO 8601 date and time in GMT when the resource will be valid until.
411 412 413 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products.rb', line 411 def valid_until @properties['valid_until'] end |