class Videoinfo::Result

Attributes

mediainfo[RW]
screenshot_urls[RW]

Public Instance Methods

to_s() click to toggle source
# File lib/videoinfo/result.rb, line 6
def to_s
  output = []

  if screenshot_urls && screenshot_urls.size > 0
    output += ['[b]Screenshots:[/b]', '[quote][align=center]']
    output += screenshot_urls.map { |url| "[img=#{url}]" }
    output += ['[/align][/quote]', '']
  end

  output += ['[mediainfo]', mediainfo, '[/mediainfo]']

  output.join("\n")
end