Class: Allocine::Search
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(query) ⇒ Search
constructor
Initialize a new Allocine search with the specified query.
-
#movies ⇒ Object
Returns an array of Allocine::Movie objects for easy search result yielded.
Constructor Details
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
4 5 6 |
# File 'lib/allocine/search.rb', line 4 def query @query end |
Instance Method Details
#movies ⇒ Object
Returns an array of Allocine::Movie objects for easy search result yielded.
15 16 17 |
# File 'lib/allocine/search.rb', line 15 def movies @movies ||= parse_movies end |