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
Unique external identifier of the Entity.
-
#config ⇒ Hash
Binding 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.
-
#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
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 183 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'], 'url' => payload['url'], } end |
Instance Method Details
#account_sid ⇒ String
Returns Account Sid.
212 213 214 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 212 def account_sid @properties['account_sid'] end |
#binding ⇒ Hash
Returns Unique external identifier of the Entity.
236 237 238 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 236 def binding @properties['binding'] end |
#config ⇒ Hash
Returns Binding for a ‘factor_type`.
272 273 274 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 272 def config @properties['config'] end |
#date_created ⇒ Time
Returns The date this Factor was created.
242 243 244 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 242 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The date this Factor was updated.
248 249 250 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 248 def date_updated @properties['date_updated'] end |
#entity_sid ⇒ String
Returns Entity Sid.
224 225 226 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 224 def entity_sid @properties['entity_sid'] end |
#factor_type ⇒ new_factor.FactorTypes
Returns The Type of this Factor.
266 267 268 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 266 def factor_type @properties['factor_type'] end |
#friendly_name ⇒ String
Returns A human readable description of this resource.
254 255 256 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 254 def friendly_name @properties['friendly_name'] end |
#identity ⇒ String
Returns Unique external identifier of the Entity.
230 231 232 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 230 def identity @properties['identity'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
290 291 292 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 290 def inspect "<Twilio.Verify.V2.NewFactorInstance>" end |
#service_sid ⇒ String
Returns Service Sid.
218 219 220 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 218 def service_sid @properties['service_sid'] end |
#sid ⇒ String
Returns A string that uniquely identifies this Factor.
206 207 208 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 206 def sid @properties['sid'] end |
#status ⇒ new_factor.FactorStatuses
Returns The Status of this Factor.
260 261 262 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 260 def status @properties['status'] end |
#to_s ⇒ Object
Provide a user friendly representation
284 285 286 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 284 def to_s "<Twilio.Verify.V2.NewFactorInstance>" end |
#url ⇒ String
Returns The URL of this resource.
278 279 280 |
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb', line 278 def url @properties['url'] end |