class ActionHook::Core::Request
Attributes
authentication[RW]
body[RW]
headers[RW]
method[RW]
secret[RW]
url[RW]
Public Class Methods
new(url:, method: :post, body: nil, headers: {}, secret: nil, authentication: nil)
click to toggle source
# File lib/actionhook/core/request.rb, line 10 def initialize(url:, method: :post, body: nil, headers: {}, secret: nil, authentication: nil) @url = url @method = method @body = body @headers = headers || {} @secret = secret @authentication = authentication end
Public Instance Methods
serialized_body()
click to toggle source
# File lib/actionhook/core/request.rb, line 19 def serialized_body @body end
uri()
click to toggle source
# File lib/actionhook/core/request.rb, line 23 def uri @uri ||= URI.parse(url) end