Class: ActivityStreams::Verb
Direct Known Subclasses
Add, Cancel, Checkin, Delete, Favorite, Follow, Give, Ignore, Invite, Join, Leave, Like, MakeFriend, Play, Post, RSVPMaybe, RSVPNo, RSVPYes, Receive, Remove, RemoveFriend, RequestFriend, Save, Share, StopFollowing, Tag, Unfavorite, Unlike, Unsave, Update
Defined Under Namespace
Classes: Add, Cancel, Checkin, Delete, Favorite, Follow, Give, Ignore, Invite, Join, Leave, Like, MakeFriend, Play, Post, RSVPMaybe, RSVPNo, RSVPYes, Receive, Remove, RemoveFriend, RequestFriend, Save, Share, StopFollowing, Tag, Unfavorite, Unlike, Unsave, Update
Instance Method Summary collapse
-
#initialize ⇒ Verb
constructor
A new instance of Verb.
- #to_s(options = {}) ⇒ Object (also: #as_json)
- #validate_attributes! ⇒ Object
Methods included from Validator
#to_float, #to_integer, #to_iri, #to_time, #validate_attribute!
Constructor Details
#initialize ⇒ Verb
Returns a new instance of Verb.
5 6 7 8 9 10 11 12 |
# File 'lib/activitystreams/verb.rb', line 5 def initialize _verb_ = if self.class.superclass == Verb self.class.name.demodulize.underscore.dasherize else 'post' end super :verb => _verb_ end |