Class: Ovh::Api::Models::TelephonyOvhPabxHuntingQueue

Inherits:
Object
  • Object
show all
Includes:
Serializable, Validations
Defined in:
lib/ovh-api/models/telephony_ovh_pabx_hunting_queue.rb

Instance Method Summary collapse

Methods included from Validations

included, #list_invalid_properties, #valid?

Methods included from Serializable

#==, #hash, serialize, #to_body, #to_hash, #to_json, #to_s

Constructor Details

#initialize(**attrs) ⇒ TelephonyOvhPabxHuntingQueue

Returns a new instance of TelephonyOvhPabxHuntingQueue.

Raises:

  • (ArgumentError)


94
95
96
97
98
99
100
101
# File 'lib/ovh-api/models/telephony_ovh_pabx_hunting_queue.rb', line 94

def initialize(**attrs)
  attrs.each do |k, v|
    raise ArgumentError, "unknown attribute: #{k}" unless respond_to?("#{k}=")

    public_send("#{k}=", v)
  end
  raise ArgumentError, list_invalid_properties.join(', ') unless valid?
end