Class: Omdb::Api::Movie
- Inherits:
-
Object
- Object
- Omdb::Api::Movie
- Defined in:
- lib/omdb/api/movie.rb
Instance Attribute Summary collapse
-
#actors ⇒ Object
readonly
Returns the value of attribute actors.
-
#awards ⇒ Object
readonly
Returns the value of attribute awards.
-
#box_office ⇒ Object
readonly
Returns the value of attribute box_office.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#director ⇒ Object
readonly
Returns the value of attribute director.
-
#dvd ⇒ Object
readonly
Returns the value of attribute dvd.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#genre ⇒ Object
readonly
Returns the value of attribute genre.
-
#imdb_id ⇒ Object
readonly
Returns the value of attribute imdb_id.
-
#imdb_rating ⇒ Object
readonly
Returns the value of attribute imdb_rating.
-
#imdb_votes ⇒ Object
readonly
Returns the value of attribute imdb_votes.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#metascore ⇒ Object
readonly
Returns the value of attribute metascore.
-
#plot ⇒ Object
readonly
Returns the value of attribute plot.
-
#poster ⇒ Object
readonly
Returns the value of attribute poster.
-
#rated ⇒ Object
readonly
Returns the value of attribute rated.
-
#released ⇒ Object
readonly
Returns the value of attribute released.
-
#runtime ⇒ Object
readonly
Returns the value of attribute runtime.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#writer ⇒ Object
readonly
Returns the value of attribute writer.
-
#year ⇒ Object
readonly
Returns the value of attribute year.
Instance Method Summary collapse
-
#initialize(params) ⇒ Movie
constructor
A new instance of Movie.
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
#actors ⇒ Object (readonly)
Returns the value of attribute actors.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def actors @actors end |
#awards ⇒ Object (readonly)
Returns the value of attribute awards.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def awards @awards end |
#box_office ⇒ Object (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 |
#country ⇒ Object (readonly)
Returns the value of attribute country.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def country @country end |
#director ⇒ Object (readonly)
Returns the value of attribute director.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def director @director end |
#dvd ⇒ Object (readonly)
Returns the value of attribute dvd.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def dvd @dvd end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def error @error end |
#genre ⇒ Object (readonly)
Returns the value of attribute genre.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def genre @genre end |
#imdb_id ⇒ Object (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_rating ⇒ Object (readonly)
Returns the value of attribute imdb_rating.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def end |
#imdb_votes ⇒ Object (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 |
#language ⇒ Object (readonly)
Returns the value of attribute language.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def language @language end |
#metascore ⇒ Object (readonly)
Returns the value of attribute metascore.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def end |
#plot ⇒ Object (readonly)
Returns the value of attribute plot.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def plot @plot end |
#poster ⇒ Object (readonly)
Returns the value of attribute poster.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def poster @poster end |
#rated ⇒ Object (readonly)
Returns the value of attribute rated.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def rated @rated end |
#released ⇒ Object (readonly)
Returns the value of attribute released.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def released @released end |
#runtime ⇒ Object (readonly)
Returns the value of attribute runtime.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def runtime @runtime end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def type @type end |
#writer ⇒ Object (readonly)
Returns the value of attribute writer.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def writer @writer end |
#year ⇒ Object (readonly)
Returns the value of attribute year.
6 7 8 |
# File 'lib/omdb/api/movie.rb', line 6 def year @year end |