Class: XNM::Telegram::OnTelegramEvent
- Inherits:
-
Object
- Object
- XNM::Telegram::OnTelegramEvent
- 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.
Instance Attribute Summary collapse
-
#priority ⇒ Object
Returns the value of attribute priority.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize ⇒ OnTelegramEvent
constructor
A new instance of OnTelegramEvent.
- #nomp_message(message) ⇒ Object
Constructor Details
#initialize ⇒ OnTelegramEvent
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
#priority ⇒ Object
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 () end |