Class: Twilio::REST::Verify::V2::ServiceContext::EntityContext::NewFactorInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Verify::V2::ServiceContext::EntityContext::NewFactorInstance
- Defined in:
- lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
Overview
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Instance Method Summary collapse
-
#account_sid ⇒ String
Account Sid.
-
#binding ⇒ Hash
Binding of the factor.
-
#config ⇒ Hash
Configurations for a ‘factor_type`.
-
#date_created ⇒ Time
The date this Factor was created.
-
#date_updated ⇒ Time
The date this Factor was updated.
-
#entity_sid ⇒ String
Entity Sid.
-
#factor_type ⇒ new_factor.FactorTypes
The Type of this Factor.
-
#friendly_name ⇒ String
A human readable description of this resource.
-
#identity ⇒ String
Unique external identifier of the Entity.
-
#initialize(version, payload, service_sid: nil, identity: nil) ⇒ NewFactorInstance
constructor
Initialize the NewFactorInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#metadata ⇒ Hash
Metadata of the factor.
-
#service_sid ⇒ String
Service Sid.
-
#sid ⇒ String
A string that uniquely identifies this Factor.
-
#status ⇒ new_factor.FactorStatuses
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, identity: nil) ⇒ NewFactorInstance
Initialize the NewFactorInstance
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 186 def initialize(version, payload, service_sid: nil, identity: 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'], 'binding' => payload['binding'], '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 Account Sid.
216 217 218 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 216 def account_sid @properties['account_sid'] end |
#binding ⇒ Hash
Returns Binding of the factor.
240 241 242 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 240 def binding @properties['binding'] end |
#config ⇒ Hash
Returns Configurations for a ‘factor_type`.
276 277 278 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 276 def config @properties['config'] end |
#date_created ⇒ Time
Returns The date this Factor was created.
246 247 248 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 246 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The date this Factor was updated.
252 253 254 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 252 def date_updated @properties['date_updated'] end |
#entity_sid ⇒ String
Returns Entity Sid.
228 229 230 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 228 def entity_sid @properties['entity_sid'] end |
#factor_type ⇒ new_factor.FactorTypes
Returns The Type of this Factor.
270 271 272 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 270 def factor_type @properties['factor_type'] end |
#friendly_name ⇒ String
Returns A human readable description of this resource.
258 259 260 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 258 def friendly_name @properties['friendly_name'] end |
#identity ⇒ String
Returns Unique external identifier of the Entity.
234 235 236 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 234 def identity @properties['identity'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
300 301 302 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 300 def inspect "<Twilio.Verify.V2.NewFactorInstance>" end |
#metadata ⇒ Hash
Returns Metadata of the factor.
282 283 284 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 282 def @properties['metadata'] end |
#service_sid ⇒ String
Returns Service Sid.
222 223 224 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 222 def service_sid @properties['service_sid'] end |
#sid ⇒ String
Returns A string that uniquely identifies this Factor.
210 211 212 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 210 def sid @properties['sid'] end |
#status ⇒ new_factor.FactorStatuses
Returns The Status of this Factor.
264 265 266 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 264 def status @properties['status'] end |
#to_s ⇒ Object
Provide a user friendly representation
294 295 296 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 294 def to_s "<Twilio.Verify.V2.NewFactorInstance>" end |
#url ⇒ String
Returns The URL of this resource.
288 289 290 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 288 def url @properties['url'] end |