Sha256: a9c10a80beb965bd6181be9c49cd3908b8a52aa28ef42bc1018f8c1716a68f05

Contents?: true

Size: 356 Bytes

Versions: 1

Compression:

Stored size: 356 Bytes

Contents

module Rollman
  class Client
    module Projects
      def list_projects
        get '/api/1/projects'
      end

      def get_a_project(project_id)
        get "/api/1/project/#{project_id}"
      end

      def create_a_project(project_name, options = {})
        post '/api/1/projects', options.merge({name: project_name})
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rollman-0.1.0 lib/rollman/client/projects.rb