Class: Result
- Inherits:
-
Struct
- Object
- Struct
- Result
- Defined in:
- lib/torrentkitty_client/result.rb
Instance Attribute Summary collapse
-
#content_size ⇒ Object
Returns the value of attribute content_size.
-
#detail_page_path ⇒ Object
Returns the value of attribute detail_page_path.
-
#magnet_link ⇒ Object
Returns the value of attribute magnet_link.
-
#name ⇒ Object
Returns the value of attribute name.
-
#torrent_size ⇒ Object
Returns the value of attribute torrent_size.
-
#upload_date ⇒ Object
Returns the value of attribute upload_date.
Instance Method Summary collapse
Instance Attribute Details
#content_size ⇒ Object
Returns the value of attribute content_size
1 2 3 |
# File 'lib/torrentkitty_client/result.rb', line 1 def content_size @content_size end |
#detail_page_path ⇒ Object
Returns the value of attribute detail_page_path
1 2 3 |
# File 'lib/torrentkitty_client/result.rb', line 1 def detail_page_path @detail_page_path end |
#magnet_link ⇒ Object
Returns the value of attribute magnet_link
1 2 3 |
# File 'lib/torrentkitty_client/result.rb', line 1 def magnet_link @magnet_link end |
#name ⇒ Object
Returns the value of attribute name
1 2 3 |
# File 'lib/torrentkitty_client/result.rb', line 1 def name @name end |
#torrent_size ⇒ Object
Returns the value of attribute torrent_size
1 2 3 |
# File 'lib/torrentkitty_client/result.rb', line 1 def torrent_size @torrent_size end |
#upload_date ⇒ Object
Returns the value of attribute upload_date
1 2 3 |
# File 'lib/torrentkitty_client/result.rb', line 1 def upload_date @upload_date end |
Instance Method Details
#to_hash ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/torrentkitty_client/result.rb', line 2 def to_hash { name: name, torrent_size: torrent_size, content_size: content_size, upload_date: upload_date, magnet_link: magnet_link } end |