Class: Kinopoisk::Search

Inherits:
Object
  • Object
show all
Defined in:
lib/kinopoisk/search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#queryObject

Returns the value of attribute query.



3
4
5
# File 'lib/kinopoisk/search.rb', line 3

def query
  @query
end

Instance Method Details

#moviesObject



9
10
11
# File 'lib/kinopoisk/search.rb', line 9

def movies
  @movies ||= parse_movies
end