Class: Twilio::REST::Memory::V1::IdentifierList::IdentifierUpdate

Inherits:
Object
  • Object
show all
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

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_typeObject

Parameters:

  • : (id_type)
    String

    The identifier type to update (e.g., email, phone).

  • : (old_value)
    String

    Existing stored value to replace.

  • : (new_value)
    String

    New value to store for the identifier. Normalization rules from the corresponding identifier settings apply.



42
43
44
# File 'lib/twilio-ruby/rest/memory/v1/identifier.rb', line 42

def id_type
  @id_type
end

#new_valueObject

Parameters:

  • : (id_type)
    String

    The identifier type to update (e.g., email, phone).

  • : (old_value)
    String

    Existing stored value to replace.

  • : (new_value)
    String

    New value to store for the identifier. Normalization rules from the corresponding identifier settings apply.



42
43
44
# File 'lib/twilio-ruby/rest/memory/v1/identifier.rb', line 42

def new_value
  @new_value
end

#old_valueObject

Parameters:

  • : (id_type)
    String

    The identifier type to update (e.g., email, phone).

  • : (old_value)
    String

    Existing stored value to replace.

  • : (new_value)
    String

    New value to store for the identifier. Normalization rules from the corresponding identifier settings apply.



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(options = {})
{
        "idType": @id_type,
        "oldValue": @old_value,
        "newValue": @new_value,
}.to_json(options)
end