class P3::Tvdb::Actor
Attributes
id[RW]
image[RW]
name[RW]
role[RW]
Public Class Methods
new(options={})
click to toggle source
# File lib/p3-tvdb/actor.rb, line 6 def initialize(options={}) @id = options["id"] @name = options["Name"] @role = options["Role"] @image = options["Image"] end
Public Instance Methods
image_url()
click to toggle source
# File lib/p3-tvdb/actor.rb, line 13 def image_url return nil unless @image "http://thetvdb.com/banners/" + @image end