Class: BingSearch::VideoResult

Inherits:
Result show all
Defined in:
lib/bing-search/models.rb

Instance Attribute Summary collapse

Attributes inherited from Result

#id

Method Summary

Methods inherited from Model

#initialize, #set

Constructor Details

This class inherits a constructor from BingSearch::Model

Instance Attribute Details

#display_urlString

URL of a Bing page that displays the video

Returns:

  • (String)


114
115
116
# File 'lib/bing-search/models.rb', line 114

def display_url
  @display_url
end

#media_urlString Also known as: url

URL of the video, often a web page containing the video

Returns:

  • (String)


109
110
111
# File 'lib/bing-search/models.rb', line 109

def media_url
  @media_url
end

#run_timeInteger? Also known as: duration

Duration of the video in milliseconds, if available

Returns:

  • (Integer, nil)


118
119
120
# File 'lib/bing-search/models.rb', line 118

def run_time
  @run_time
end

#thumbnailImage

Returns:



122
123
124
# File 'lib/bing-search/models.rb', line 122

def thumbnail
  @thumbnail
end

#titleString

Returns:

  • (String)


105
106
107
# File 'lib/bing-search/models.rb', line 105

def title
  @title
end