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.



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

def location
  @location
end

Instance Method Details

#inspect -> Object



48
49
50
# File 'lib/discorb/event.rb', line 48

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