Class: Convoy::PortalLink
- Inherits:
-
ApiResource
- Object
- ApiResource
- Convoy::PortalLink
- Extended by:
- ApiOperations::Create
- Defined in:
- lib/convoy/resources/portal_link.rb
Instance Attribute Summary
Attributes inherited from ApiResource
Instance Method Summary collapse
-
#initialize(id = nil, config = Convoy.config, **kwargs) ⇒ PortalLink
constructor
A new instance of PortalLink.
- #resource_uri ⇒ Object
Methods included from ApiOperations::Create
Methods included from ApiOperations::Delete
Methods included from ApiOperations::List
Methods included from ApiOperations::Save
Methods included from ApiOperations::Get
Methods inherited from ApiResource
Methods included from ApiOperations::Request
Constructor Details
#initialize(id = nil, config = Convoy.config, **kwargs) ⇒ PortalLink
Returns a new instance of PortalLink.
9 10 11 12 13 14 |
# File 'lib/convoy/resources/portal_link.rb', line 9 def initialize(id = nil, config = Convoy.config, **kwargs) @id = id @config = config super(**kwargs) end |
Instance Method Details
#resource_uri ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/convoy/resources/portal_link.rb', line 16 def resource_uri if @id.nil? return "#{project_base_uri}/portal-links" end "#{project_base_uri}/portal-links/#{@id}" end |