class Twilio::REST::Verify::V2::ServiceContext::EntityContext::ChallengeContext::NotificationInstance

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Public Class Methods

new(version, payload, service_sid: nil, identity: nil, challenge_sid: nil) click to toggle source

Initialize the NotificationInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] service_sid The unique SID identifier of the Service. @param [String] identity Customer unique identity for the Entity owner of the

Challenge. This identifier should be immutable, not PII, length between 8 and 64
characters, and generated by your external system, such as your user's UUID,
GUID, or SID. It can only contain dash (-) separated alphanumeric characters.

@param [String] challenge_sid The unique SID identifier of the Challenge. @return [NotificationInstance] NotificationInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
116 def initialize(version, payload, service_sid: nil, identity: nil, challenge_sid: nil)
117   super(version)
118 
119   # Marshaled Properties
120   @properties = {
121       'sid' => payload['sid'],
122       'account_sid' => payload['account_sid'],
123       'service_sid' => payload['service_sid'],
124       'entity_sid' => payload['entity_sid'],
125       'identity' => payload['identity'],
126       'challenge_sid' => payload['challenge_sid'],
127       'priority' => payload['priority'],
128       'ttl' => payload['ttl'].to_i,
129       'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
130   }
131 end

Public Instance Methods

account_sid() click to toggle source

@return [String] Account Sid.

    # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
141 def account_sid
142   @properties['account_sid']
143 end
challenge_sid() click to toggle source

@return [String] Challenge Sid.

    # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
165 def challenge_sid
166   @properties['challenge_sid']
167 end
date_created() click to toggle source

@return [Time] The date this Notification was created

    # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
183 def date_created
184   @properties['date_created']
185 end
entity_sid() click to toggle source

@return [String] Entity Sid.

    # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
153 def entity_sid
154   @properties['entity_sid']
155 end
identity() click to toggle source

@return [String] Unique external identifier of the Entity

    # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
159 def identity
160   @properties['identity']
161 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
195 def inspect
196   "<Twilio.Verify.V2.NotificationInstance>"
197 end
priority() click to toggle source

@return [String] The priority of the notification.

    # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
171 def priority
172   @properties['priority']
173 end
service_sid() click to toggle source

@return [String] Service Sid.

    # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
147 def service_sid
148   @properties['service_sid']
149 end
sid() click to toggle source

@return [String] A string that uniquely identifies this Notification.

    # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
135 def sid
136   @properties['sid']
137 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
189 def to_s
190   "<Twilio.Verify.V2.NotificationInstance>"
191 end
ttl() click to toggle source

@return [String] How long, in seconds, the notification is valid.

    # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
177 def ttl
178   @properties['ttl']
179 end