Sha256: 46fe522aa882d1c9124ff3d060a920ead8c0decc79ee908ceb6a2a18764c1c4c
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
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 } }] } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hentry_consumer-0.3.1 | lib/hentry_consumer/h_card.rb |