Sha256: 7a00b8cd7d8dd43ebf532737e004d05a8183d462f156d0a7e02571aa05abf6db

Contents?: true

Size: 270 Bytes

Versions: 7

Compression:

Stored size: 270 Bytes

Contents

module Sinbotra::Messenger
  class User < Sinbotra::Bot::User
    def self.load(msg)
      msg  = Sinbotra::Messenger::Message.load(msg)
      user = Sinbotra::Bot::UserRepo.find_or_create(self, msg.sender.id)
      user.handle_message(msg)
      user
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sinbotra-0.1.6 lib/sinbotra/messenger/user.rb
sinbotra-0.1.5 lib/sinbotra/messenger/user.rb
sinbotra-0.1.4 lib/sinbotra/messenger/user.rb
sinbotra-0.1.3 lib/sinbotra/messenger/user.rb
sinbotra-0.1.2 lib/sinbotra/messenger/user.rb
sinbotra-0.1.1 lib/sinbotra/messenger/user.rb
sinbotra-0.1.0 lib/sinbotra/messenger/user.rb