Sha256: a338b05c81940b8e93f11ffe904bcd15e3e28f436567e7a6e3e991c914be0042

Contents?: true

Size: 992 Bytes

Versions: 1

Compression:

Stored size: 992 Bytes

Contents

module Bcx
  module Resources

    # Bcx::Resources::Project
    # Provides access to projects resoource and other nested resources
    #
    # Fetch all projects
    # GET /projects.json
    #
    #     client.projects!
    #
    # Fetch archived projects
    # GET /projects/archived.json
    #
    #     clients.projects.archived!
    #
    # Fetch single project with ID of 123
    # GET /projects/123.json
    #
    #     client.projects!(123)
    #
    # Create a project
    # POST /projects.json
    #
    #     client.projects.create!(name: 'Acme project', description: 'This is a new project')
    #
    # Update an existing project
    # PUT /projects/123.json
    #
    #     client.projects(123).update!(description: 'A new description')
    #
    # Delete a project
    # DELETE /projects/123.json
    #
    #     client.projects(123).delete!
    #
    class Project < Rapidash::Base
      resource :todolists
      resource :todos

      collection :archived
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bcx-0.1.0 lib/bcx/resources/project.rb