Class: Viberator::Chat
Instance Method Summary collapse
Methods inherited from Record
Constructor Details
This class inherits a constructor from Viberator::Record
Instance Method Details
#events ⇒ Object
11 12 13 |
# File 'lib/viberator/chat.rb', line 11 def events @db.events @attrs[:ChatID] end |
#name ⇒ Object
6 7 8 9 |
# File 'lib/viberator/chat.rb', line 6 def name return @attrs[:Name] if @attrs[:Name] == @attrs[:Token] "#{@attrs[:Name]} (#{@attrs[:Token]})" end |