Module: Titi::Provider::ActivityStreams
- Defined in:
- lib/titi/provider/activity_streams.rb,
lib/titi/provider/activity_streams/obj.rb,
lib/titi/provider/activity_streams/feed.rb,
lib/titi/provider/activity_streams/link.rb,
lib/titi/provider/activity_streams/actor.rb,
lib/titi/provider/activity_streams/entry.rb,
lib/titi/provider/activity_streams/address.rb,
lib/titi/provider/activity_streams/activity_streams_struct.rb
Defined Under Namespace
Classes: ActivityStreamsStruct
Constant Summary collapse
- Obj =
ActivityStream object. We can’t call them ‘Object’ (ruby has a class like that already :)
http://activitystrea.ms/spec/1.0/atom-activity-01.html#activityobjectelement
ActivityStreamsStruct.new( :id, :title, :content, :link_alt, :published, :updated, # :author, :object_type, # video, post, file :vevent )
- Feed =
ActivityStreamsStruct.new( :entry )
- Link =
<link href=“twitter.com/banksean/statuses/12244282580”
type="text/xhtml" rel="via" title="Just saw a @cliqset #salmon @-mention interop demo by @jpanzer. Very neat stuff!"> </link>
ActivityStreamsStruct.new( :href, :title, :rel, :type )
- Actor =
ActivityStream author
http://activitystrea.ms/spec/1.0/atom-activity-01.html#activityactor
ActivityStreamsStruct.new( :name, :uri )
- Author =
Actor
- Entry =
An ActivityStream entry
http://activitystrea.ms/spec/1.0/atom-activity-01.html#activityentries
ActivityStreamsStruct.new( :id, # ??? :title, # title :content, # content :link_alt, # link {"href"=>"http://x.myspacecdn.com/modules/common/static/img/photo.gif", "rel"=>"icon", "type"=>"image/gif"} :link_enclosure, # link {"href"=>"http://x.myspacecdn.com/modules/common/static/img/photo.gif", "rel"=>"icon", "type"=>"image/gif"} :link_preview, # link {"href"=>"http://x.myspacecdn.com/modules/common/static/img/photo.gif", "rel"=>"icon", "type"=>"image/gif"} :link_icon, # link {"href"=>"http://x.myspacecdn.com/modules/common/static/img/photo.gif", "rel"=>"icon", "type"=>"image/gif"} :link_related, # link {"href"=>"http://x.myspacecdn.com/modules/common/static/img/photo.gif", "rel"=>"icon", "type"=>"image/gif"} :published, # date published :updated, # date updated # :category, # type of entry :activity_verb, # action it implies: :sync, # sync :rank, # rank # :actor, # actor :author, # author {"name"=>["misterflip"], "uri"=>["http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=24601"]} :mood, # :source, :obj, # object :target # target )
- Address =
ActivityStreamsStruct.new( :country, :locality, :postalCode, # :xml_keys # for debugging, capture the keys from the raw XML hash )