Sha256: 952810588c8f9bfacbbac0e23adabcc34743a9185135cc6e7477cb1807c05515

Contents?: true

Size: 520 Bytes

Versions: 5

Compression:

Stored size: 520 Bytes

Contents

module HasVcards
  class Vcard
    module DirectoryAddress
      def to_vcard
        Vcard.new(
          given_name: first_name,
          family_name: family_name,
          street_address: street,
          postal_code: zip_code,
          locality: city
        )
      end

      def to_vcard_attributes
        {
          given_name: first_name,
          family_name: family_name,
          street_address: street,
          postal_code: zip_code,
          locality: city
        }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
has_vcards-1.1.2 app/models/has_vcards/vcard/directory_address.rb
has_vcards-1.1.1 app/models/has_vcards/vcard/directory_address.rb
has_vcards-1.1.0 app/models/has_vcards/vcard/directory_address.rb
has_vcards-1.0.0 app/models/has_vcards/vcard/directory_address.rb
has_vcards-1.0.0.rc0 app/models/has_vcards/vcard/directory_address.rb