Method: UltracartClient::OrderShipping#==

Defined in:
lib/ultracart_api/models/order_shipping.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
# File 'lib/ultracart_api/models/order_shipping.rb', line 611

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      address1 == o.address1 &&
      address2 == o.address2 &&
      city == o.city &&
      company == o.company &&
      country_code == o.country_code &&
      day_phone == o.day_phone &&
      day_phone_e164 == o.day_phone_e164 &&
      delivery_date == o.delivery_date &&
      evening_phone == o.evening_phone &&
      evening_phone_e164 == o.evening_phone_e164 &&
      first_name == o.first_name &&
      last_name == o.last_name &&
      least_cost_route == o.least_cost_route &&
      least_cost_route_shipping_methods == o.least_cost_route_shipping_methods &&
      lift_gate == o.lift_gate &&
      pickup_dts == o.pickup_dts &&
      postal_code == o.postal_code &&
      rma == o.rma &&
      ship_on_date == o.ship_on_date &&
      ship_to_residential == o.ship_to_residential &&
       == o. &&
      shipping_date == o.shipping_date &&
      shipping_department_status == o.shipping_department_status &&
      shipping_method == o.shipping_method &&
      shipping_method_accounting_code == o.shipping_method_accounting_code &&
      special_instructions == o.special_instructions &&
      state_region == o.state_region &&
      title == o.title &&
      tracking_number_details == o.tracking_number_details &&
      tracking_numbers == o.tracking_numbers &&
      weight == o.weight
end