Sha256: e3f6155c470ff868cf9a24f478ae0a419cce7fa64cc6be0358a8feeaa4337f34

Contents?: true

Size: 512 Bytes

Versions: 11

Compression:

Stored size: 512 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

      def update_chat(chat_id: nil, params: {})
        PushbulletRuby::Chat.new(post("/v2/chats/#{chat_id}", params).body)
      end
    end
  end
end

Version data entries

11 entries across 10 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/api/chats.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/api/chats.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/api/chats.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/api/chats.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/api/chats.rb
pushbullet_ruby-1.1.4 lib/pushbullet_ruby/api/chats.rb
tdiary-5.0.8 vendor/bundle/gems/pushbullet_ruby-1.1.3/lib/pushbullet_ruby/api/chats.rb
pushbullet_ruby-1.1.3 lib/pushbullet_ruby/api/chats.rb
pushbullet_ruby-1.1.2 lib/pushbullet_ruby/api/chats.rb
pushbullet_ruby-1.1.1 lib/pushbullet_ruby/api/chats.rb
pushbullet_ruby-1.1.0 lib/pushbullet_ruby/api/chats.rb