Class: Convoy::Project
- Inherits:
-
ApiResource
- Object
- ApiResource
- Convoy::Project
- Extended by:
- ApiOperations::Create
- Defined in:
- lib/convoy/resources/project.rb
Instance Attribute Summary
Attributes inherited from ApiResource
Instance Method Summary collapse
-
#initialize(id = nil, config = Convoy.config, **kwargs) ⇒ Project
constructor
A new instance of Project.
- #resource_uri ⇒ Object
Methods included from ApiOperations::Create
Methods included from ApiOperations::List
Methods included from ApiOperations::Delete
Methods included from ApiOperations::Save
Methods included from ApiOperations::Get
Methods inherited from ApiResource
Methods included from ApiOperations::Request
Constructor Details
Instance Method Details
#resource_uri ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/convoy/resources/project.rb', line 16 def resource_uri if @id.nil? return "#{@config.base_uri}/#{@config.path_version}/projects" end "#{@config.base_uri}/#{@config.path_version}/projects" + "/#{@id}" end |