Sha256: 28a92d60a9700b9c5f99a04963a38e1674446149a5819e98121dc19299121a1e
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-mail_chimp-3.0.3 | app/services/workarea/mail_chimp/address.rb |
workarea-mail_chimp-3.0.2 | app/services/workarea/mail_chimp/address.rb |