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

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, service_sid: nil, identity: nil, challenge_sid: nil) ⇒ NotificationInstance

Initialize the NotificationInstance



116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb', line 116

def initialize(version, payload, service_sid: nil, identity: nil, challenge_sid: nil)
  super(version)

  # Marshaled Properties
  @properties = {
      'sid' => payload['sid'],
      'account_sid' => payload['account_sid'],
      'service_sid' => payload['service_sid'],
      'entity_sid' => payload['entity_sid'],
      'identity' => payload['identity'],
      'challenge_sid' => payload['challenge_sid'],
      'priority' => payload['priority'],
      'ttl' => payload['ttl'].to_i,
      'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
  }
end

Instance Method Details

#account_sidString



141
142
143
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb', line 141

def 
  @properties['account_sid']
end

#challenge_sidString



165
166
167
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb', line 165

def challenge_sid
  @properties['challenge_sid']
end

#date_createdTime



183
184
185
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb', line 183

def date_created
  @properties['date_created']
end

#entity_sidString



153
154
155
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb', line 153

def entity_sid
  @properties['entity_sid']
end

#identityString



159
160
161
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb', line 159

def identity
  @properties['identity']
end

#inspectObject

Provide a detailed, user friendly representation



195
196
197
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb', line 195

def inspect
  "<Twilio.Verify.V2.NotificationInstance>"
end

#priorityString



171
172
173
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb', line 171

def priority
  @properties['priority']
end

#service_sidString



147
148
149
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb', line 147

def service_sid
  @properties['service_sid']
end

#sidString



135
136
137
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb', line 135

def sid
  @properties['sid']
end

#to_sObject

Provide a user friendly representation



189
190
191
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb', line 189

def to_s
  "<Twilio.Verify.V2.NotificationInstance>"
end

#ttlString



177
178
179
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb', line 177

def ttl
  @properties['ttl']
end