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
Account Sid.
-
#friendly_name ⇒ String
A string to describe the verification template.
-
#initialize(version, payload) ⇒ TemplateInstance
constructor
Initialize the TemplateInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#sid ⇒ String
A string that uniquely identifies this Template.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#translations ⇒ Hash
Object with the template translations.
Constructor Details
#initialize(version, payload) ⇒ TemplateInstance
Initialize the TemplateInstance
155 156 157 158 159 160 161 162 163 164 165 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 155 def initialize(version, payload) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'account_sid' => payload['account_sid'], 'friendly_name' => payload['friendly_name'], 'translations' => payload['translations'], } end |
Instance Method Details
#account_sid ⇒ String
Returns Account Sid.
175 176 177 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 175 def account_sid @properties['account_sid'] end |
#friendly_name ⇒ String
Returns A string to describe the verification template.
181 182 183 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 181 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
199 200 201 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 199 def inspect "<Twilio.Verify.V2.TemplateInstance>" end |
#sid ⇒ String
Returns A string that uniquely identifies this Template.
169 170 171 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 169 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
193 194 195 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 193 def to_s "<Twilio.Verify.V2.TemplateInstance>" end |
#translations ⇒ Hash
Returns Object with the template translations.
187 188 189 |
# File 'lib/twilio-ruby/rest/verify/v2/template.rb', line 187 def translations @properties['translations'] end |