Class: Rubirai::GroupFileSimple

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

Overview

Group file with less information

Direct Known Subclasses

GroupFile

Instance Attribute Summary collapse

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)


103
# File 'lib/rubirai/objects/group_info.rb', line 103

set_fields :name, :id, :path, :is_file, is_file: true

Instance Attribute Details

#idInteger (readonly)

Returns:

  • (Integer)


103
# File 'lib/rubirai/objects/group_info.rb', line 103

set_fields :name, :id, :path, :is_file, is_file: true

#is_fileBoolean (readonly) Also known as: is_file?

Returns:

  • (Boolean)


103
# File 'lib/rubirai/objects/group_info.rb', line 103

set_fields :name, :id, :path, :is_file, is_file: true

#nameString (readonly)

Returns:

  • (String)


103
# File 'lib/rubirai/objects/group_info.rb', line 103

set_fields :name, :id, :path, :is_file, is_file: true

Instance Method Details

#to_hHash{String => Object}

Returns:

  • (Hash{String => Object})


103
# File 'lib/rubirai/objects/group_info.rb', line 103

set_fields :name, :id, :path, :is_file, is_file: true