Class: Torrentz::Search::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, name) ⇒ Result

Returns a new instance of Result.



18
19
20
# File 'lib/torrentz/search.rb', line 18

def initialize(url, name)
  @url, @name = url, name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



16
17
18
# File 'lib/torrentz/search.rb', line 16

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url.



16
17
18
# File 'lib/torrentz/search.rb', line 16

def url
  @url
end