Sha256: 3ef9049556cf50febd43ab28c3191d18f50ec7b9aafcaa9a9224bb88ed1a2eee

Contents?: true

Size: 316 Bytes

Versions: 14

Compression:

Stored size: 316 Bytes

Contents

require 'quick_travel/init_from_hash'

module QuickTravel
  class Address
    include QuickTravel::InitFromHash

    def country_name
      QuickTravel::Country.find(@country_id).name
    end

    def to_s
      "#{address_line1} #{address_line2}, #{city}, #{post_code}, #{state}, #{country_name}"
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
quicktravel_client-4.7.0 lib/quick_travel/address.rb
quicktravel_client-4.6.0 lib/quick_travel/address.rb
quicktravel_client-4.5.0 lib/quick_travel/address.rb
quicktravel_client-4.4.0 lib/quick_travel/address.rb
quicktravel_client-4.3.2 lib/quick_travel/address.rb
quicktravel_client-4.3.1 lib/quick_travel/address.rb
quicktravel_client-4.3.0 lib/quick_travel/address.rb
quicktravel_client-4.2.0 lib/quick_travel/address.rb
quicktravel_client-4.1.0 lib/quick_travel/address.rb
quicktravel_client-4.0.0 lib/quick_travel/address.rb
quicktravel_client-3.9.0 lib/quick_travel/address.rb
quicktravel_client-3.8.1 lib/quick_travel/address.rb
quicktravel_client-3.8.0 lib/quick_travel/address.rb
quicktravel_client-3.7.0 lib/quick_travel/address.rb