class Convoy::DeliveryAttempt
Public Class Methods
new(eventId = nil, id = nil, config = Convoy.config, **kwargs)
click to toggle source
# File lib/convoy/resources/delivery_attempt.rb, line 6 def initialize(eventId = nil, id = nil, config = Convoy.config, **kwargs) @eventId = eventId @id = id @params = kwargs[:params].nil? ? {} : kwargs[:params] @config = config end
Public Instance Methods
resource_url()
click to toggle source
# File lib/convoy/resources/delivery_attempt.rb, line 13 def resource_url if @id.nil? return "#{@config.base_uri}/#{@config.path_version}/events/#{@eventId}" + "/deliveryattempts" end "#{@config.base_uri}/#{@config.path_version}/events/#{@eventId}/deliveryattempts" + "/#{@id}" end