Class: Twilio::REST::Verify::V2::TemplateInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Verify::V2::TemplateInstance
- Defined in:
- lib/twilio-ruby/rest/verify/v2/template.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The unique SID identifier of the Account.
-
#channels ⇒ Array<String>
A list of channels that support the Template.
-
#friendly_name ⇒ String
A descriptive string that you create to describe a Template.
-
#initialize(version, payload) ⇒ TemplateInstance
constructor
Initialize the TemplateInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#sid ⇒ String
A 34 character string that uniquely identifies a Verification Template.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#translations ⇒ Hash
An object that contains the different translations of the template.
Constructor Details
#initialize(version, payload) ⇒ TemplateInstance
Initialize the TemplateInstance
259 260 261 262 263 264 265 266 267 268 269 270 271 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 259 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'account_sid' => payload['account_sid'], 'friendly_name' => payload['friendly_name'], 'channels' => payload['channels'], 'translations' => payload['translations'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The unique SID identifier of the Account.
282 283 284 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 282 def account_sid @properties['account_sid'] end |
#channels ⇒ Array<String>
Returns A list of channels that support the Template. Can include: sms, voice.
294 295 296 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 294 def channels @properties['channels'] end |
#friendly_name ⇒ String
Returns A descriptive string that you create to describe a Template. It can be up to 32 characters long.
288 289 290 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 288 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
312 313 314 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 312 def inspect "<Twilio.Verify.V2.TemplateInstance>" end |
#sid ⇒ String
Returns A 34 character string that uniquely identifies a Verification Template.
276 277 278 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 276 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
306 307 308 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 306 def to_s "<Twilio.Verify.V2.TemplateInstance>" end |
#translations ⇒ Hash
Returns An object that contains the different translations of the template. Every translation is identified by the language short name and contains its respective information as the approval status, text and created/modified date.
300 301 302 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 300 def translations @properties['translations'] end |