Sha256: 29b9fc85b5fc68302f44c77a8f2b45ab84cbd6c47b9d2579ba557d4a36b501b3

Contents?: true

Size: 566 Bytes

Versions: 4

Compression:

Stored size: 566 Bytes

Contents

module IMDB
  class Cast < IMDB::Skeleton
    attr_accessor :movie, :person, :char

    def initialize(movie, person, char)
      super("Cast", { :person => Person, :movie => Movie }, [:person, :char])
      @movie = movie
      @person = person
      @char = char
    end

    def name
      @person.name
    end

    def char
      @char
    end

    def imdb_id
      movie.imdb_id
    end

    def profile
      @person.profile_path
    end

    def picture
      @person.photo
    end

    def to_s
      "Name: #{name} \n Char: #{char} \n"
    end


  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
imdb-scan-0.0.3.1 lib/imdb/cast.rb
imdb-scan-0.0.3 lib/imdb/cast.rb
imdb-scan-0.0.2 lib/imdb/cast.rb
imdb-scan-0.0.1 lib/imdb/cast.rb