Sha256: 01bd682af590e23dfb3242a4028c974a01de3f89aec60cae2077bd2683431ed6
Contents?: true
Size: 300 Bytes
Versions: 4
Compression:
Stored size: 300 Bytes
Contents
module Lifen class Status < Base attribute :user, Lifen::User attribute :unread, Integer def refresh json = client.get("central/api/chats/status") self.unread = json["unread"] end private def client @client ||= user.client end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lifen-0.2.1 | lib/lifen/status.rb |
lifen-0.2.0 | lib/lifen/status.rb |
lifen-0.1.5 | lib/lifen/status.rb |
lifen-0.1.4 | lib/lifen/status.rb |