Class: ActivityStreams::Object::Event

Inherits:
ActivityStreams::Object show all
Defined in:
lib/activitystreams/object/event.rb

Instance Method Summary collapse

Methods inherited from ActivityStreams::Object

#initialize, #recommended_verbs, recommended_verbs

Methods included from ExtProperties

included

Methods inherited from Base

#as_json, #initialize

Methods included from Validator

#to_float, #to_integer, #to_iri, #to_time, #validate_attribute!

Constructor Details

This class inherits a constructor from ActivityStreams::Object

Instance Method Details

#validate_attributes!Object



5
6
7
8
9
10
11
12
13
# File 'lib/activitystreams/object/event.rb', line 5

def validate_attributes!
  super
  [:attending, :maybe_attending, :not_attending].each do |_attr_|
    validate_attribute! _attr_, Object::Collection
  end
  [:start_time, :end_time].each do |_attr_|
    to_time _attr_
  end
end