Sha256: 890be6c15aa6d131cc0ce9f2c3a09dfd8cbbd4286292351a0d0a119bf4808456

Contents?: true

Size: 785 Bytes

Versions: 2

Compression:

Stored size: 785 Bytes

Contents

module Quickbooks
  module Model
    class PhysicalAddress < BaseModel
      xml_accessor :id, :from => 'Id', :as => Integer
      xml_accessor :line1, :from => 'Line1'
      xml_accessor :line2, :from => 'Line2'
      xml_accessor :line3, :from => 'Line3'
      xml_accessor :line4, :from => 'Line4'
      xml_accessor :line5, :from => 'Line5'
      xml_accessor :city, :from => 'City'
      xml_accessor :country, :from => 'Country'
      xml_accessor :country_sub_division_code, :from => 'CountrySubDivisionCode'
      xml_accessor :postal_code, :from => 'PostalCode'
      xml_accessor :note, :from => 'Note'
      xml_accessor :lat, :from => 'Lat', :as => Float
      xml_accessor :lon, :from => 'Long', :as => Float

      def zip
        postal_code
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
quickbooks-ruby-0.0.2 lib/quickbooks/model/physical_address.rb
quickbooks-ruby-0.0.1 lib/quickbooks/model/physical_address.rb