Sha256: 058da5950e127a3279d7fc315502a0526c7cd889d61b6c9ad3733da6722cf105
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 Bytes
Contents
module ActivityStreams class Verb < Base attr_required :verb def initialize _verb_ = if self.class.superclass == Verb self.class.name.demodulize.underscore.dasherize else 'post' end super :verb => _verb_ end def validate_attributes! super to_iri :verb end def to_s(options = {}) verb.to_s end alias_method :as_json, :to_s end end Dir[File.dirname(__FILE__) + '/verb/*.rb'].each do |file| require file end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
activitystreams-0.0.4 | lib/activitystreams/verb.rb |
activitystreams-0.0.3 | lib/activitystreams/verb.rb |
activitystreams-0.0.2 | lib/activitystreams/verb.rb |