Class: PupilfirstXapi::Objects::VideoStart

Inherits:
Object
  • Object
show all
Defined in:
lib/pupilfirst_xapi/objects/video_start.rb

Instance Method Summary collapse

Instance Method Details

#call(target, uri_for) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/pupilfirst_xapi/objects/video_start.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