Sha256: 315cc0da1dbffb64fadc7a83cdf7c1c5e8e78f7728e0ab5cf5631404f0c0c280

Contents?: true

Size: 720 Bytes

Versions: 3

Compression:

Stored size: 720 Bytes

Contents

module Trell
  class Client
    module Boards
      def member_boards(username, options = {})
        get "members/#{username}/boards", options
      end
      alias_method :boards, :member_boards

      def organization_boards(name, options = {})
        get "organizations/#{name}/boards", options
      end
      alias_method :org_boards, :organization_boards

      def create_board(options = {})
        post 'boards', options
      end

      def board(id, options = {})
        get "boards/#{id}", options
      end

      def update_board(id, options = {})
        put "boards/#{id}", options
      end

      def delete_board(id, options = {})
        delete "boards/#{id}", options
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trell-0.0.4 lib/trell/client/boards.rb
trell-0.0.3 lib/trell/client/boards.rb
trell-0.0.2 lib/trell/client/boards.rb