Class: ActivityStreams::MediaLink
- Defined in:
- lib/activitystreams/media_link.rb
Instance Method Summary collapse
Methods inherited from Base
Methods included from Validator
#to_float, #to_integer, #to_iri, #to_time, #validate_attribute!
Constructor Details
This class inherits a constructor from ActivityStreams::Base
Instance Method Details
#validate_attributes! ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/activitystreams/media_link.rb', line 11 def validate_attributes! super to_iri :url [:duration, :height, :width].each do |_attr_| to_integer _attr_ end end |