Sha256: 881ea2508126041cbc7b37364a84d9189e080df3619b43c94ec8350b9d5437db

Contents?: true

Size: 627 Bytes

Versions: 4

Compression:

Stored size: 627 Bytes

Contents

module ChatWork
  module MyStatus
    extend EntityMethods

    # Get the number of: unread messages, unread To messages, and unfinished tasks.
    #
    # @see http://developer.chatwork.com/ja/endpoint_my.html#GET-my-status
    # @see http://download.chatwork.com/ChatWork_API_Documentation.pdf
    #
    # @return [Hashie::Mash]
    #
    # @example response format
    #   {
    #     "unread_room_num": 2,
    #     "mention_room_num": 1,
    #     "mytask_room_num": 3,
    #     "unread_num": 12,
    #     "mention_num": 1,
    #     "mytask_num": 8
    #   }
    def self.get
      _get("/my/status")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chatwork-0.7.0 lib/chatwork/my_status.rb
chatwork-0.6.2 lib/chatwork/my_status.rb
chatwork-0.6.1 lib/chatwork/my_status.rb
chatwork-0.6.0 lib/chatwork/my_status.rb