Class: Twilio::REST::Memory::V1::IdentifierList::IdentifierUpdate
- Inherits:
-
Object
- Object
- Twilio::REST::Memory::V1::IdentifierList::IdentifierUpdate
- Defined in:
- lib/twilio-ruby/rest/memory/v1/identifier.rb,
lib/twilio-ruby/rest/memory/v1/identifier.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ IdentifierUpdate
constructor
A new instance of IdentifierUpdate.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ IdentifierUpdate
Returns a new instance of IdentifierUpdate.
43 44 45 46 47 |
# File 'lib/twilio-ruby/rest/memory/v1/identifier.rb', line 43 def initialize(payload) @id_type = payload["id_type"] @old_value = payload["old_value"] @new_value = payload["new_value"] end |
Instance Attribute Details
#id_type ⇒ Object
42 43 44 |
# File 'lib/twilio-ruby/rest/memory/v1/identifier.rb', line 42 def id_type @id_type end |
#new_value ⇒ Object
42 43 44 |
# File 'lib/twilio-ruby/rest/memory/v1/identifier.rb', line 42 def new_value @new_value end |
#old_value ⇒ Object
42 43 44 |
# File 'lib/twilio-ruby/rest/memory/v1/identifier.rb', line 42 def old_value @old_value end |
Instance Method Details
#to_json(options = {}) ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/twilio-ruby/rest/memory/v1/identifier.rb', line 48 def to_json( = {}) { "idType": @id_type, "oldValue": @old_value, "newValue": @new_value, }.to_json() end |