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