Class: Torrentz::Search::Result
- Inherits:
-
Object
- Object
- Torrentz::Search::Result
- Defined in:
- lib/torrentz/search.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, name) ⇒ Result
constructor
A new instance of Result.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
16 17 18 |
# File 'lib/torrentz/search.rb', line 16 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
16 17 18 |
# File 'lib/torrentz/search.rb', line 16 def url @url end |