Sha256: 431fa5671c8986f32f63b5c9380735f1d692c432d3e2c8bbc16fb14f5a79ebf3

Contents?: true

Size: 685 Bytes

Versions: 16

Compression:

Stored size: 685 Bytes

Contents

# => http://microformats.org/wiki/hcard
require 'microformat'
require 'mofo/geo'
require 'mofo/adr'

class HCard < Microformat
  container :vcard

  one :fn, :bday, :tz, :sort_string, :uid, :class,
      :geo => Geo

  many :label, :sound, :title, :role, :key, 
       :mailer, :rev, :nickname, :category, :note,
       :logo => :url, :url => :url, :photo => :url,
       :adr => Adr

  one :n do
    one :family_name, :given_name, :additional_name
    many :honorific_prefix, :honorific_suffix
  end 

  many :email do 
    many :type
    many :value
  end 

  many :tel do
    many :type
    many :value
  end

  many :org do
    one :organization_name, :organization_unit
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mofo-0.2.11 ./lib/mofo/hcard.rb
mofo-0.2.14 ./lib/mofo/hcard.rb
mofo-0.2.3 ./lib/mofo/hcard.rb
mofo-0.2.4 ./lib/mofo/hcard.rb
mofo-0.2.5 ./lib/mofo/hcard.rb
mofo-0.2.6 ./lib/mofo/hcard.rb
mofo-0.2.1 lib/mofo/hcard.rb
mofo-0.2.10 ./lib/mofo/hcard.rb
mofo-0.2.12 ./lib/mofo/hcard.rb
mofo-0.2.13 ./lib/mofo/hcard.rb
mofo-0.2.15 ./lib/mofo/hcard.rb
mofo-0.2.16 ./lib/mofo/hcard.rb
mofo-0.2.2 lib/mofo/hcard.rb
mofo-0.2 lib/mofo/hcard.rb
mofo-0.2.8 ./lib/mofo/hcard.rb
mofo-0.2.9 ./lib/mofo/hcard.rb