Method: AftershipAPI::Model::CustomersDeleteTrackingByIdResponse#initialize
- Defined in:
- lib/aftership-tracking-sdk/models/customers_delete_tracking_by_id_response.rb
#initialize(attributes = {}) ⇒ CustomersDeleteTrackingByIdResponse
Initializes the object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/aftership-tracking-sdk/models/customers_delete_tracking_by_id_response.rb', line 28 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `AftershipAPI::CustomersDeleteTrackingByIdResponse` initialize method" end attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.key?(:'role') self.role = attributes[:'role'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'phone_number') self.phone_number = attributes[:'phone_number'] end if attributes.key?(:'email') self.email = attributes[:'email'] end if attributes.key?(:'language') self.language = attributes[:'language'] end end |