Sha256: 68d66d52e97c7b6186dff9f58a8c0514264193449305a5214366e5062eb39cc7

Contents?: true

Size: 260 Bytes

Versions: 2

Compression:

Stored size: 260 Bytes

Contents

module ChatWork
  class Room < Entity
    install_class_operations :create

    def self.path
      '/rooms'
    end

    def message
      ChatWork.client.post([path, 'messages'].join('/'), params)
    end

    def path
      "/rooms/#{id}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chatwork-0.0.2 lib/chatwork/room.rb
chatwork-0.0.1 lib/chatwork/room.rb