Class: Twilio::REST::Memory::V1::LookupList::Identifier
- Inherits:
-
Object
- Object
- Twilio::REST::Memory::V1::LookupList::Identifier
- Defined in:
- lib/twilio-ruby/rest/memory/v1/lookup.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ Identifier
constructor
A new instance of Identifier.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ Identifier
Returns a new instance of Identifier.
26 27 28 29 |
# File 'lib/twilio-ruby/rest/memory/v1/lookup.rb', line 26 def initialize(payload) @id_type = payload["id_type"] @value = payload["value"] end |
Instance Attribute Details
#id_type ⇒ Object
25 26 27 |
# File 'lib/twilio-ruby/rest/memory/v1/lookup.rb', line 25 def id_type @id_type end |
#value ⇒ Object
25 26 27 |
# File 'lib/twilio-ruby/rest/memory/v1/lookup.rb', line 25 def value @value end |
Instance Method Details
#to_json(options = {}) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/twilio-ruby/rest/memory/v1/lookup.rb', line 30 def to_json( = {}) { "idType": @id_type, "value": @value, }.to_json() end |