Class: Discorb::ScheduledEvent::Metadata

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

Overview

Represents the metadata of the event.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#location -> String? (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.



35
36
37
# File 'lib/discorb/event.rb', line 35

def location
  @location
end

Instance Method Details

#inspect -> Object



42
43
44
# File 'lib/discorb/event.rb', line 42

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