class Twilio::REST::Verify::V2::ServiceContext::EntityContext::NewFactorInstance

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) click to toggle source

Initialize the NewFactorInstance @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

Factor. 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.

@return [NewFactorInstance] NewFactorInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
183 def initialize(version, payload, service_sid: nil, identity: nil)
184   super(version)
185 
186   # Marshaled Properties
187   @properties = {
188       'sid' => payload['sid'],
189       'account_sid' => payload['account_sid'],
190       'service_sid' => payload['service_sid'],
191       'entity_sid' => payload['entity_sid'],
192       'identity' => payload['identity'],
193       'binding' => payload['binding'],
194       'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
195       'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
196       'friendly_name' => payload['friendly_name'],
197       'status' => payload['status'],
198       'factor_type' => payload['factor_type'],
199       'config' => payload['config'],
200       'url' => payload['url'],
201   }
202 end

Public Instance Methods

account_sid() click to toggle source

@return [String] Account Sid.

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
212 def account_sid
213   @properties['account_sid']
214 end
binding() click to toggle source

@return [Hash] Unique external identifier of the Entity

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
236 def binding
237   @properties['binding']
238 end
config() click to toggle source

@return [Hash] Binding for a `factor_type`.

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
272 def config
273   @properties['config']
274 end
date_created() click to toggle source

@return [Time] The date this Factor was created

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
242 def date_created
243   @properties['date_created']
244 end
date_updated() click to toggle source

@return [Time] The date this Factor was updated

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
248 def date_updated
249   @properties['date_updated']
250 end
entity_sid() click to toggle source

@return [String] Entity Sid.

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
224 def entity_sid
225   @properties['entity_sid']
226 end
factor_type() click to toggle source

@return [new_factor.FactorTypes] The Type of this Factor

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
266 def factor_type
267   @properties['factor_type']
268 end
friendly_name() click to toggle source

@return [String] A human readable description of this resource.

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
254 def friendly_name
255   @properties['friendly_name']
256 end
identity() click to toggle source

@return [String] Unique external identifier of the Entity

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
230 def identity
231   @properties['identity']
232 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
290 def inspect
291   "<Twilio.Verify.V2.NewFactorInstance>"
292 end
service_sid() click to toggle source

@return [String] Service Sid.

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
218 def service_sid
219   @properties['service_sid']
220 end
sid() click to toggle source

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

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
206 def sid
207   @properties['sid']
208 end
status() click to toggle source

@return [new_factor.FactorStatuses] The Status of this Factor

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
260 def status
261   @properties['status']
262 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
284 def to_s
285   "<Twilio.Verify.V2.NewFactorInstance>"
286 end
url() click to toggle source

@return [String] The URL of this resource.

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
278 def url
279   @properties['url']
280 end