Sha256: 0f253ca375424b5183a5a460181f14a749fcc525c69fb532e1b424f025eb7484

Contents?: true

Size: 373 Bytes

Versions: 2

Compression:

Stored size: 373 Bytes

Contents

module PushbulletRuby
  module API
    module Chats
      def chats
        PushbulletRuby::Chat.from_response(get('/v2/chats'))
      end

      def create_chat(params: {})
        PushbulletRuby::Chat.new(post('/v2/chats', params).body)
      end

      def delete_chat(chat_id: nil)
        delete("/v2/chats/#{chat_id}").body
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pushbullet_ruby-1.0.4.1 lib/pushbullet_ruby/api/chats.rb
pushbullet_ruby-1.0.4 lib/pushbullet_ruby/api/chats.rb