Class: Ezrss::Search

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#resultsObject (readonly)

Returns the value of attribute results.



7
8
9
# File 'lib/ezrss/search.rb', line 7

def results
  @results
end