Module: Paypal::Ipn::Buyer

Defined in:
lib/paypal/ipn/variables/buyer.rb

Instance Method Summary collapse

Instance Method Details

#customer_address(delimeter = ",\n") ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/paypal/ipn/variables/buyer.rb', line 4

def customer_address(delimeter = ",\n")
  [
    customer_address_name,
    customer_address_street,
    customer_address_city,
    customer_address_state,
    customer_address_country + " " + customer_address_zip,
  ].join(delimeter)
end

#customer_address_cityObject



22
23
24
# File 'lib/paypal/ipn/variables/buyer.rb', line 22

def customer_address_city
  self.params["address_city"].to_s
end

#customer_address_countryObject



34
35
36
# File 'lib/paypal/ipn/variables/buyer.rb', line 34

def customer_address_country
  self.params["address_country"].to_s
end

#customer_address_nameObject



14
15
16
# File 'lib/paypal/ipn/variables/buyer.rb', line 14

def customer_address_name
  self.params["address_name"].to_s
end

#customer_address_stateObject



26
27
28
# File 'lib/paypal/ipn/variables/buyer.rb', line 26

def customer_address_state
  self.params["address_state"].to_s
end

#customer_address_streetObject



18
19
20
# File 'lib/paypal/ipn/variables/buyer.rb', line 18

def customer_address_street
  self.params["address_street"].to_s
end

#customer_address_zipObject



30
31
32
# File 'lib/paypal/ipn/variables/buyer.rb', line 30

def customer_address_zip
  self.params["address_zip"].to_s
end