Sha256: 5d0e3b9734c3ed1d7593b33d99b0f78bed23e1e9e366c60218e02be96469e5c6

Contents?: true

Size: 941 Bytes

Versions: 3

Compression:

Stored size: 941 Bytes

Contents

# ## Projects
#
# 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!
#
module Bcx
  module Resources
    class Project < Rapidash::Base
      resource :todolists
      resource :todos
      resource :accesses
      resource :comments

      collection :archived
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bcx-1.1.0 lib/bcx/resources/project.rb
bcx-1.0.0 lib/bcx/resources/project.rb
bcx-0.4.0 lib/bcx/resources/project.rb