Class: Ofdb::Search
- Inherits:
-
Object
- Object
- Ofdb::Search
- Defined in:
- lib/ofdb/search.rb
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(query, is_imdb_id = false) ⇒ Search
constructor
Uses query as Searchstring.
-
#movies ⇒ Object
Returns the Searchresults as Array of Hashes with * :link => Url in Ofdb.de of that movie * :title => String like: $Germantitle / $OrignialTitle ($Year) * :poster => Url of the Poster, nil if not found.
Constructor Details
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
3 4 5 |
# File 'lib/ofdb/search.rb', line 3 def query @query end |
Instance Method Details
#movies ⇒ Object
Returns the Searchresults as Array of Hashes with
-
:link => Url in Ofdb.de of that movie
-
:title => String like: $Germantitle / $OrignialTitle ($Year)
-
:poster => Url of the Poster, nil if not found
18 19 20 |
# File 'lib/ofdb/search.rb', line 18 def movies @movies ||= parse_movies end |