Class: Convoy::Event
- Inherits:
-
ApiResource
- Object
- ApiResource
- Convoy::Event
- Extended by:
- ApiOperations::Create
- Defined in:
- lib/convoy/resources/event.rb
Instance Attribute Summary
Attributes inherited from ApiResource
Instance Method Summary collapse
- #fanout ⇒ Object
-
#initialize(id = nil, config = Convoy.config, **kwargs) ⇒ Event
constructor
A new instance of Event.
- #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
#fanout ⇒ Object
24 25 26 27 |
# File 'lib/convoy/resources/event.rb', line 24 def fanout fanout_uri = "#{resource_uri}/fanout" send_request(fanout_uri, :post, data: @data, params: @params) end |
#resource_uri ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/convoy/resources/event.rb', line 16 def resource_uri if @id.nil? return "#{project_base_uri}/events" end "#{project_base_uri}/events/#{@id}" end |