Method: CampfireChat::Client#messages
- Defined in:
- lib/campfire_chat/client.rb
#messages ⇒ Object
14 15 16 17 18 19 |
# File 'lib/campfire_chat/client.rb', line 14 def = room.recent.select {|x| x.type == 'TextMessage' } = .select {|x| x.id.to_i > .to_i }.map {|m| (m) } self. = .last.id unless .empty? end |