Class: Imdb::Search
- Inherits:
-
Object
- Object
- Imdb::Search
- Defined in:
- lib/imdb/search.rb
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(query = {}) ⇒ Search
constructor
Initialize a new IMDB search with the specified query.
-
#movie ⇒ Object
Return new Imdb::Movie object with json hash as attributes.
Constructor Details
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
3 4 5 |
# File 'lib/imdb/search.rb', line 3 def query @query end |
Instance Method Details
#movie ⇒ Object
Return new Imdb::Movie object with json hash as attributes
17 18 19 |
# File 'lib/imdb/search.rb', line 17 def movie @movie ||= parse_json end |