Displaying 1 result from an estimated 1 matches for "has_billing_address".
2008 Mar 19
2
Stub / Mock - A little guidance?
...bject. The method takes
an OrderPaymentInfo object and copies its attributes onto the User''s
attributes (Ignore the clunky design... that''s just how it has to be).
The User''s instance method looks like so:
class User
def update_billing_info(billing_info)
unless self.has_billing_address?
self.bill_to_address1 = billing_info.address1
self.bill_to_address2 = billing_info.address2
self.bill_to_address3 = billing_info.address3
self.bill_to_city = billing_info.city
self.bill_to_country_code = billing_i...