Class: Twilio::REST::Verify::V2::ServiceContext::NewVerifyFactorInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Verify::V2::ServiceContext::NewVerifyFactorInstance
- Defined in:
- lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The unique SID identifier of the Account.
-
#config ⇒ Hash
An object that contains configurations specific to a ‘factor_type`.
-
#date_created ⇒ Time
The date that this Factor was created, given in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
-
#date_updated ⇒ Time
The date that this Factor was updated, given in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
-
#entity_sid ⇒ String
The unique SID identifier of the Entity.
-
#factor_type ⇒ String
The Type of this Factor.
-
#friendly_name ⇒ String
A human readable description of this resource, up to 64 characters.
-
#identity ⇒ String
Customer unique identity for the Entity owner of the Factor.
-
#initialize(version, payload, service_sid: nil) ⇒ NewVerifyFactorInstance
constructor
Initialize the NewVerifyFactorInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#metadata ⇒ Hash
Custom metadata associated with the factor.
-
#service_sid ⇒ String
The unique SID identifier of the Service.
-
#sid ⇒ String
A 34 character string that uniquely identifies this Factor.
-
#status ⇒ String
The Status of this Factor.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The URL of this resource.
Constructor Details
#initialize(version, payload, service_sid: nil) ⇒ NewVerifyFactorInstance
Initialize the NewVerifyFactorInstance
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 148 def initialize(version, payload , service_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'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 'friendly_name' => payload['friendly_name'], 'status' => payload['status'], 'factor_type' => payload['factor_type'], 'config' => payload['config'], 'metadata' => payload['metadata'], 'url' => payload['url'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The unique SID identifier of the Account.
178 179 180 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 178 def account_sid @properties['account_sid'] end |
#config ⇒ Hash
Returns An object that contains configurations specific to a ‘factor_type`.
232 233 234 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 232 def config @properties['config'] end |
#date_created ⇒ Time
Returns The date that this Factor was created, given in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
202 203 204 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 202 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The date that this Factor was updated, given in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
208 209 210 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 208 def date_updated @properties['date_updated'] end |
#entity_sid ⇒ String
Returns The unique SID identifier of the Entity.
190 191 192 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 190 def entity_sid @properties['entity_sid'] end |
#factor_type ⇒ String
Returns The Type of this Factor. Currently ‘push` and `totp` are supported.
226 227 228 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 226 def factor_type @properties['factor_type'] end |
#friendly_name ⇒ String
Returns A human readable description of this resource, up to 64 characters.
214 215 216 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 214 def friendly_name @properties['friendly_name'] end |
#identity ⇒ String
Returns Customer unique identity for the Entity owner of the Factor.
196 197 198 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 196 def identity @properties['identity'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
256 257 258 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 256 def inspect "<Twilio.Verify.V2.NewVerifyFactorInstance>" end |
#metadata ⇒ Hash
Returns Custom metadata associated with the factor.
238 239 240 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 238 def @properties['metadata'] end |
#service_sid ⇒ String
Returns The unique SID identifier of the Service.
184 185 186 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 184 def service_sid @properties['service_sid'] end |
#sid ⇒ String
Returns A 34 character string that uniquely identifies this Factor.
172 173 174 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 172 def sid @properties['sid'] end |
#status ⇒ String
Returns The Status of this Factor. One of ‘unverified` or `verified`.
220 221 222 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 220 def status @properties['status'] end |
#to_s ⇒ Object
Provide a user friendly representation
250 251 252 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 250 def to_s "<Twilio.Verify.V2.NewVerifyFactorInstance>" end |
#url ⇒ String
Returns The URL of this resource.
244 245 246 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 244 def url @properties['url'] end |