Class: Rubirai::GroupFile

Inherits:
GroupFileSimple show all
Defined in:
lib/rubirai/objects/group_info.rb

Overview

Group file with detailed information

Instance Attribute Summary collapse

Attributes inherited from GroupFileSimple

#id, #is_file, #name

Attributes inherited from GroupInfo

#bot, #raw

Instance Method Summary collapse

Constructor Details

#initialize(hash, bot = nil) ⇒ Object

Parameters:

  • hash (Hash{String => Object})
  • bot (Rubirai::Bot, nil) (defaults to: nil)


131
132
133
134
135
136
137
138
# File 'lib/rubirai/objects/group_info.rb', line 131

set_fields :length,
:download_times,
:uploader_id,
:upload_time,
:last_modify_time,
:download_url,
:sha1,
:md5

Instance Attribute Details

#download_timesInteger (readonly)

Returns:

  • (Integer)


131
132
133
134
135
136
137
138
# File 'lib/rubirai/objects/group_info.rb', line 131

set_fields :length,
:download_times,
:uploader_id,
:upload_time,
:last_modify_time,
:download_url,
:sha1,
:md5

#download_urlString (readonly)

Returns:

  • (String)


131
132
133
134
135
136
137
138
# File 'lib/rubirai/objects/group_info.rb', line 131

set_fields :length,
:download_times,
:uploader_id,
:upload_time,
:last_modify_time,
:download_url,
:sha1,
:md5

#last_modify_timeInteger (readonly)

Returns:

  • (Integer)


131
132
133
134
135
136
137
138
# File 'lib/rubirai/objects/group_info.rb', line 131

set_fields :length,
:download_times,
:uploader_id,
:upload_time,
:last_modify_time,
:download_url,
:sha1,
:md5

#lengthInteger (readonly)

Returns:

  • (Integer)


131
132
133
134
135
136
137
138
# File 'lib/rubirai/objects/group_info.rb', line 131

set_fields :length,
:download_times,
:uploader_id,
:upload_time,
:last_modify_time,
:download_url,
:sha1,
:md5

#md5String (readonly)

Returns:

  • (String)


131
132
133
134
135
136
137
138
# File 'lib/rubirai/objects/group_info.rb', line 131

set_fields :length,
:download_times,
:uploader_id,
:upload_time,
:last_modify_time,
:download_url,
:sha1,
:md5

#sha1String (readonly)

Returns:

  • (String)


131
132
133
134
135
136
137
138
# File 'lib/rubirai/objects/group_info.rb', line 131

set_fields :length,
:download_times,
:uploader_id,
:upload_time,
:last_modify_time,
:download_url,
:sha1,
:md5

#upload_timeInteger (readonly)

Returns:

  • (Integer)


131
132
133
134
135
136
137
138
# File 'lib/rubirai/objects/group_info.rb', line 131

set_fields :length,
:download_times,
:uploader_id,
:upload_time,
:last_modify_time,
:download_url,
:sha1,
:md5

#uploader_idInteger (readonly)

Returns:

  • (Integer)


131
132
133
134
135
136
137
138
# File 'lib/rubirai/objects/group_info.rb', line 131

set_fields :length,
:download_times,
:uploader_id,
:upload_time,
:last_modify_time,
:download_url,
:sha1,
:md5

Instance Method Details

#to_hHash{String => Object}

Returns:

  • (Hash{String => Object})


131
132
133
134
135
136
137
138
# File 'lib/rubirai/objects/group_info.rb', line 131

set_fields :length,
:download_times,
:uploader_id,
:upload_time,
:last_modify_time,
:download_url,
:sha1,
:md5