Sha256: 638980e7d3cf4a47208d6be2ef1b75b2b9af8898b18949280bb4a9cdb97f5362

Contents?: true

Size: 839 Bytes

Versions: 1

Compression:

Stored size: 839 Bytes

Contents

module IMDB
    class Person < IMDB::Skeleton
      def initialize(imdb_id, name, char, profile, picture)
        super("Person",{:imdb_id => String,
              :name => String,
              :char => String,
              :profile => String,
              :picture => String}, [:imdb_id, :profile])
        @imdb_id = imdb_id
        @name = name
        @char = char
        @profile = profile
        @picture = picture
      end

      def imdb_id
        @imdb_id
      end

      def name
        @name
      end

      def char
        @char
      end

      def profile
        @profile
      end

      def picture
        @picture
      end

      def profile
        @profile
      end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-imdb-0.6.0 lib/imdb/person.rb