Class: RubyCord::Guild::Event::Metadata

Inherits:
Object
  • Object
show all
Defined in:
lib/rubycord/guild/event.rb

Overview

Represents the metadata of the event.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locationString? (readonly)

Returns The location of the event. Only present if the event is a external event.

Returns:

  • (String, nil)

    The location of the event. Only present if the event is a external event.



36
37
38
# File 'lib/rubycord/guild/event.rb', line 36

def location
  @location
end

Instance Method Details

#inspectString

Returns Object class and attributes.

Returns:

  • (String)

    Object class and attributes.



44
45
46
# File 'lib/rubycord/guild/event.rb', line 44

def inspect
  "#<#{self.class.name} #{@name}>"
end