Sha256: fb8cbffcdfc6b598aa7c84fd67d495e8e9a5713bc6665c377baab6d7edf56e6f
Contents?: true
Size: 672 Bytes
Versions: 3
Compression:
Stored size: 672 Bytes
Contents
module Workarea module MailChimp class Address attr_reader :address, :options def initialize(address, options = {}) @address = address @options = options end # @return Hash def to_h { name: address.first_name + " " + address.last_name, address1: address.street, address2: address.street_2.to_s, city: address.city, province: address.region.to_s, postal_code: address.postal_code.to_s, country: address.country.alpha2, phone: address.phone_number.to_s, company: address.company.to_s } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems