Sha256: db636f19f0f70da4068e12d1cbcf54e61ac64dcb880be839047a699746fd6284
Contents?: true
Size: 1.38 KB
Versions: 5
Compression:
Stored size: 1.38 KB
Contents
module BugherdClient module Resources module V1 class Project < Base # # Get more detail of your account. # def all raw_response = get_request('projects') parse_response(raw_response, :projects) end # # Show details for a specific project # def find(project_id) raw_response = get_request("projects/#{project_id}") parse_response(raw_response, :project) end # # Create a Project, will initially have no members # attributes: name, devurl, is_public, is_active # def create(attributes={}) raw_response = post_request("projects", project: attributes) parse_response(raw_response, :project) end # # Update settings for an existing project under your control (ie: only the ones you own). # def update(project_id, attributes={}) raw_response = put_request("projects/#{project_id}", project: attributes) parse_response(raw_response, :project) end # # Delete a project and all associated data. Use with care, deleted projects cannot be recovered. # def delete(project_id) raw_response = delete_request("projects/#{project_id}") parse_response(raw_response) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems