Sha256: 3bd7ee480e702f9a9548d0a13acbbabff76de42b300786e72e6c80a093712e53
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 Bytes
Contents
# encoding: utf-8 module Riksteatern class Venue class Address attr_reader :address1, :address2, :postal_code, :postal_city, :country_code def initialize(data) @address1 = data['address1'] @address2 = data['address2'] @postal_code = data['postalCode'] @postal_city = data['postalCity'] @country_code = data['countryCode'] end def to_s [ address1, address2, postal_code, postal_city, country_code ].compact.join("\n") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
riksteatern-0.0.1 | lib/riksteatern/venue/address.rb |