class PupilfirstXapi::Objects::VideoEnd

Public Instance Methods

call(target, uri_for) click to toggle source
# File lib/pupilfirst_xapi/objects/video_end.rb, line 4
def call(target, uri_for)
  target_uri = uri_for.call(target)

  Builder.new(
    id: target_uri,
    type: "http://activitystrea.ms/schema/1.0/event",
    name: "video in #{target.title}",
    description: target.description
  ).call
end