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