Class: Upay::Address::ShippingAddress

Inherits:
Address
  • Object
show all
Defined in:
lib/upay/address/shipping_address.rb

Instance Method Summary collapse

Methods inherited from Address

#city, #city=, #country, #country=, #initialize, #phone, #phone=, #postalCode, #postalCode=, #state, #state=, #street1, #street1=, #street2, #street2=, #to_hash

Constructor Details

This class inherits a constructor from Upay::Address::Address

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


4
5
6
7
# File 'lib/upay/address/shipping_address.rb', line 4

def valid?
  validator = ShippingAddressValidator.new
  validator.valid?(self) 
end