Displaying 1 result from an estimated 1 matches for "bill_to_address2".
Did you mean:
bill_to_address1
2008 Mar 19
2
Stub / Mock - A little guidance?
...;'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_info.country_code
self.bill_to_state_province_code = billing_info.state_province_code...