Class: Ezrss::Search
- Inherits:
-
Object
- Object
- Ezrss::Search
- Defined in:
- lib/ezrss/search.rb
Instance Attribute Summary collapse
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Instance Method Summary collapse
-
#initialize(show_name, opts = {}) ⇒ Search
constructor
A new instance of Search.
Constructor Details
#initialize(show_name, opts = {}) ⇒ Search
Returns a new instance of Search.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ezrss/search.rb', line 9 def initialize show_name, opts = {} @show_name = show_name @show_name_exact = opts[:show_name_exact] || false @date = opts[:date] ? opts[:date].strftime("%Y-%m-%d") : "" @quality = opts[:quality] || "" @quality_exact = opts[:quality_exact] || false @release_group = opts[:release_group] || "" @results = fetch_results end |
Instance Attribute Details
#results ⇒ Object (readonly)
Returns the value of attribute results.
7 8 9 |
# File 'lib/ezrss/search.rb', line 7 def results @results end |