module HentryConsumer class HCard < Element attr_accessor :name, :email, :url alias_method :emails, :email alias_method :urls, :url def to_json(*a) {:items => [{ :type => ["h-card"], :properties => { :name => self.name, :email => self.email, :url => self.url } }] }.to_json(a) end end end