Class: Ovh::Api::Models::Partner2PartnerShip
- Inherits:
-
Object
- Object
- Ovh::Api::Models::Partner2PartnerShip
- Includes:
- Serializable, Validations
- Defined in:
- lib/ovh-api/models/partner2_partner_ship.rb
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ Partner2PartnerShip
constructor
A new instance of Partner2PartnerShip.
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) ⇒ Partner2PartnerShip
Returns a new instance of Partner2PartnerShip.
44 45 46 47 48 49 50 51 |
# File 'lib/ovh-api/models/partner2_partner_ship.rb', line 44 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 |