Method: Plivo::Resources::NumberInterface#update

Defined in:
lib/plivo/resources/numbers.rb

#update(number, options = nil) ⇒ Object

Parameters:

  • number (String)
  • options (Hash) (defaults to: nil)

Options Hash (options):

  • :alias (String)

    The textual name given to the number.

  • :app_id (String)

    The application id of the application that is to be linked.

  • :subaccount (String)

    The auth_id of the subaccount to which this number should be added. This can only be performed by a main account holder.

  • :cnam_lookup (String)

    The Cnam Lookup configuration to enable/disable Cnam Lookup



339
340
341
342
343
# File 'lib/plivo/resources/numbers.rb', line 339

def update(number, options = nil)
  valid_param?(:number, number, [String, Symbol], true)
  Number.new(@_client,
             resource_id: number).update(options)
end