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
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
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
@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
@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
@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
@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
@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
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
@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
@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
@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
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
@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