Sha256: 653a01994d4ae69395c802e7117cb18e1df804ae72cf901132b60e42e2bf952c

Contents?: true

Size: 966 Bytes

Versions: 10

Compression:

Stored size: 966 Bytes

Contents

module ChatWork
  module MyStatus
    # 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
    #
    # @yield [response_body, response_header] if block was given, return response body and response header through block arguments
    # @yieldparam response_body [Hashie::Mash] response body
    # @yieldparam response_header [Hash<String, String>] response header (e.g. X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset)
    #
    # @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(&block)
      ChatWork.client.get_my_status(&block)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
chatwork-1.0.1 lib/chatwork/my_status.rb
chatwork-1.0.0 lib/chatwork/my_status.rb
chatwork-0.12.3 lib/chatwork/my_status.rb
chatwork-0.12.2 lib/chatwork/my_status.rb
chatwork-0.12.1 lib/chatwork/my_status.rb
chatwork-0.12.0 lib/chatwork/my_status.rb
chatwork-0.11.0 lib/chatwork/my_status.rb
chatwork-0.10.0 lib/chatwork/my_status.rb
chatwork-0.9.0 lib/chatwork/my_status.rb
chatwork-0.8.0 lib/chatwork/my_status.rb