Sha256: 1e90e0373c2c42624b12499df48c8370ba699c4b2e6d5c75410d67b724480eaa

Contents?: true

Size: 436 Bytes

Versions: 52

Compression:

Stored size: 436 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}.postal": @address.postal,
          "#{prefix}.city": @address.city,
          "#{prefix}.country": @address.country
        }
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
udongo-7.2.0 lib/udongo/email_vars/address.rb
udongo-7.1.3 lib/udongo/email_vars/address.rb
udongo-7.1.2 lib/udongo/email_vars/address.rb
udongo-7.1.1 lib/udongo/email_vars/address.rb
udongo-7.1.0 lib/udongo/email_vars/address.rb
udongo-7.0.4 lib/udongo/email_vars/address.rb
udongo-7.0.3 lib/udongo/email_vars/address.rb
udongo-7.0.2 lib/udongo/email_vars/address.rb
udongo-7.0.1 lib/udongo/email_vars/address.rb
udongo-7.0.0 lib/udongo/email_vars/address.rb
udongo-6.6.3 lib/udongo/email_vars/address.rb
udongo-6.6.2 lib/udongo/email_vars/address.rb
udongo-6.6.1 lib/udongo/email_vars/address.rb
udongo-6.6.0 lib/udongo/email_vars/address.rb
udongo-6.5.2 lib/udongo/email_vars/address.rb
udongo-6.5.1 lib/udongo/email_vars/address.rb
udongo-6.5.0 lib/udongo/email_vars/address.rb
udongo-6.4.1 lib/udongo/email_vars/address.rb
udongo-6.4.0 lib/udongo/email_vars/address.rb
udongo-6.3.2 lib/udongo/email_vars/address.rb