Class: XNM::Telegram::OnTelegramEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/xnm/telegram/Handler.rb

Overview

TODO:

Test if the sorting is the right way around

Dummy class to provide sensible defaults for most things. Only really matters for priority, so that we can sort after that.

Direct Known Subclasses

OnCommand, OnMessage

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOnTelegramEvent

Returns a new instance of OnTelegramEvent.



16
17
18
# File 'lib/xnm/telegram/Handler.rb', line 16

def initialize()
	@priority = 0
end

Instance Attribute Details

#priorityObject

Returns the value of attribute priority.



14
15
16
# File 'lib/xnm/telegram/Handler.rb', line 14

def priority
  @priority
end

Instance Method Details

#<=>(other) ⇒ Object



22
23
24
# File 'lib/xnm/telegram/Handler.rb', line 22

def <=>(other)
	self.priority <=> other.priority
end

#nomp_message(message) ⇒ Object



20
# File 'lib/xnm/telegram/Handler.rb', line 20

def nomp_message(message) end