Class: ActivityStreams::MediaLink

Inherits:
Base
  • Object
show all
Defined in:
lib/activitystreams/media_link.rb

Instance Method Summary collapse

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::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