Class: TpbWrap::Media
- Inherits:
-
Object
- Object
- TpbWrap::Media
- Includes:
- FromHash
- Defined in:
- lib/tpb_wrap/media.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/tpb_wrap/media.rb', line 4 def name @name end |
Instance Method Details
#magnet_url ⇒ Object
8 9 10 |
# File 'lib/tpb_wrap/media.rb', line 8 def magnet_url Page.new(:url => search_url).first_source.magnet_url end |
#search_url ⇒ Object
5 6 7 |
# File 'lib/tpb_wrap/media.rb', line 5 def search_url "http://thepiratebay.se/search/#{name}/0/7/0" end |