Module: ActivityStreams::ExtProperties
Defined Under Namespace
Classes: Mood
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/activitystreams/ext_properties.rb', line 7 def self.included(klass) klass.attr_optional( :location, :mood, :rating, :source, :tags ) end |
Instance Method Details
#validate_attributes! ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/activitystreams/ext_properties.rb', line 17 def validate_attributes! super validate_attribute! :location, Object::Place validate_attribute! :mood, Mood validate_attribute! :rating, Object::Review validate_attribute! :source, Object validate_attribute! :tags, Object, :arrayed! end |