Class: Omdb::Api::Movie

Inherits:
Object
  • Object
show all
Defined in:
lib/omdb/api/movie.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Movie

Returns a new instance of Movie.



29
30
31
32
33
# File 'lib/omdb/api/movie.rb', line 29

def initialize(params)
  params.each_pair do |k, v|
    instance_variable_set("@#{k}", v)
  end
end

Instance Attribute Details

#actorsObject (readonly)

Returns the value of attribute actors.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def actors
  @actors
end

#awardsObject (readonly)

Returns the value of attribute awards.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def awards
  @awards
end

#box_officeObject (readonly)

Returns the value of attribute box_office.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def box_office
  @box_office
end

#countryObject (readonly)

Returns the value of attribute country.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def country
  @country
end

#directorObject (readonly)

Returns the value of attribute director.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def director
  @director
end

#dvdObject (readonly)

Returns the value of attribute dvd.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def dvd
  @dvd
end

#errorObject (readonly)

Returns the value of attribute error.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def error
  @error
end

#genreObject (readonly)

Returns the value of attribute genre.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def genre
  @genre
end

#imdb_idObject (readonly)

Returns the value of attribute imdb_id.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def imdb_id
  @imdb_id
end

#imdb_ratingObject (readonly)

Returns the value of attribute imdb_rating.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def imdb_rating
  @imdb_rating
end

#imdb_votesObject (readonly)

Returns the value of attribute imdb_votes.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def imdb_votes
  @imdb_votes
end

#languageObject (readonly)

Returns the value of attribute language.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def language
  @language
end

#metascoreObject (readonly)

Returns the value of attribute metascore.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def metascore
  @metascore
end

#plotObject (readonly)

Returns the value of attribute plot.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def plot
  @plot
end

#posterObject (readonly)

Returns the value of attribute poster.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def poster
  @poster
end

#ratedObject (readonly)

Returns the value of attribute rated.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def rated
  @rated
end

#releasedObject (readonly)

Returns the value of attribute released.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def released
  @released
end

#runtimeObject (readonly)

Returns the value of attribute runtime.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def runtime
  @runtime
end

#titleObject (readonly)

Returns the value of attribute title.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def type
  @type
end

#writerObject (readonly)

Returns the value of attribute writer.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def writer
  @writer
end

#yearObject (readonly)

Returns the value of attribute year.



6
7
8
# File 'lib/omdb/api/movie.rb', line 6

def year
  @year
end