Class: Viberator::Chat

Inherits:
Record
  • Object
show all
Defined in:
lib/viberator/chat.rb

Instance Method Summary collapse

Methods inherited from Record

#initialize

Constructor Details

This class inherits a constructor from Viberator::Record

Instance Method Details

#eventsObject



11
12
13
# File 'lib/viberator/chat.rb', line 11

def events
  @db.events @attrs[:ChatID]
end

#nameObject



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