Sha256: abb48dd47d3e53f44c0aae642695485c3bc869b2926b63b3821877b92b346017

Contents?: true

Size: 477 Bytes

Versions: 20

Compression:

Stored size: 477 Bytes

Contents

module Udongo
  module EmailVars
    class Address
      def initialize(address)
        @address = address
      end

      def to_hash(prefix: 'address')
        {
          "#{prefix}.street": @address.street,
          "#{prefix}.number": @address.number,
          "#{prefix}.box": @address.box,
          "#{prefix}.postal": @address.postal,
          "#{prefix}.city": @address.city,
          "#{prefix}.country": @address.country
        }
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
udongo-7.9.0 lib/udongo/email_vars/address.rb
udongo-7.8.1 lib/udongo/email_vars/address.rb
udongo-7.8.0 lib/udongo/email_vars/address.rb
udongo-7.7.2 lib/udongo/email_vars/address.rb
udongo-7.7.1 lib/udongo/email_vars/address.rb
udongo-7.7.0 lib/udongo/email_vars/address.rb
udongo-7.6.2 lib/udongo/email_vars/address.rb
udongo-7.6.1 lib/udongo/email_vars/address.rb
udongo-7.6.0 lib/udongo/email_vars/address.rb
udongo-7.5.1 lib/udongo/email_vars/address.rb
udongo-7.5.0 lib/udongo/email_vars/address.rb
udongo-7.4.2 lib/udongo/email_vars/address.rb
udongo-7.4.1 lib/udongo/email_vars/address.rb
udongo-7.4.0 lib/udongo/email_vars/address.rb
udongo-7.3.5 lib/udongo/email_vars/address.rb
udongo-7.3.4 lib/udongo/email_vars/address.rb
udongo-7.3.3 lib/udongo/email_vars/address.rb
udongo-7.3.2 lib/udongo/email_vars/address.rb
udongo-7.3.1 lib/udongo/email_vars/address.rb
udongo-7.2.1 lib/udongo/email_vars/address.rb