Class: Kinopoisk::Search
- Inherits:
-
Object
- Object
- Kinopoisk::Search
- Defined in:
- lib/kinopoisk/search.rb
Instance Attribute Summary collapse
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(query) ⇒ Search
constructor
A new instance of Search.
- #movies ⇒ Object
Constructor Details
#initialize(query) ⇒ Search
Returns a new instance of Search.
5 6 7 |
# File 'lib/kinopoisk/search.rb', line 5 def initialize(query) @query = query end |
Instance Attribute Details
#query ⇒ Object
Returns the value of attribute query.
3 4 5 |
# File 'lib/kinopoisk/search.rb', line 3 def query @query end |
Instance Method Details
#movies ⇒ Object
9 10 11 |
# File 'lib/kinopoisk/search.rb', line 9 def movies @movies ||= parse_movies end |