Sha256: f3d6626710a64484e040cc4c5418849ee15d2f35db7aa175c7b36f34d2b4743f

Contents?: true

Size: 603 Bytes

Versions: 2

Compression:

Stored size: 603 Bytes

Contents

module SimpleShipping
  # Represents an address information of {SimpleShipping::Party party}.
  # == Attributes:
  # * _country_code_
  # * _state_code_
  # * _city_
  # * _street_line_
  # * _street_line_2_
  # * _street_line_3_
  # * _postal_code_
  class Address < Abstract::Model
    attr_accessor :country_code,
                  :state_code,
                  :city,
                  :street_line,
                  :street_line_2,
                  :street_line_3,
                  :postal_code

    validates_presence_of :country_code, :state_code, :city, :street_line, :postal_code
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_shipping-0.4.7 lib/simple_shipping/address.rb
simple_shipping-0.4.6 lib/simple_shipping/address.rb