Class: Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/torrentkitty_client/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#content_sizeObject

Returns the value of attribute content_size

Returns:

  • (Object)

    the current value of content_size



1
2
3
# File 'lib/torrentkitty_client/result.rb', line 1

def content_size
  @content_size
end

#detail_page_pathObject

Returns the value of attribute detail_page_path

Returns:

  • (Object)

    the current value of detail_page_path



1
2
3
# File 'lib/torrentkitty_client/result.rb', line 1

def detail_page_path
  @detail_page_path
end

Returns the value of attribute magnet_link

Returns:

  • (Object)

    the current value of magnet_link



1
2
3
# File 'lib/torrentkitty_client/result.rb', line 1

def magnet_link
  @magnet_link
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



1
2
3
# File 'lib/torrentkitty_client/result.rb', line 1

def name
  @name
end

#torrent_sizeObject

Returns the value of attribute torrent_size

Returns:

  • (Object)

    the current value of torrent_size



1
2
3
# File 'lib/torrentkitty_client/result.rb', line 1

def torrent_size
  @torrent_size
end

#upload_dateObject

Returns the value of attribute upload_date

Returns:

  • (Object)

    the current value of upload_date



1
2
3
# File 'lib/torrentkitty_client/result.rb', line 1

def upload_date
  @upload_date
end

Instance Method Details

#to_hashObject



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