Sha256: b3082eb05850ecd76001f14ee180adeeffc8b1e28bd828be9cee28259a44961d
Contents?: true
Size: 612 Bytes
Versions: 3
Compression:
Stored size: 612 Bytes
Contents
require 'actionhook/security/headers' module ActionHook module Core class Request include ActionHook::Security::Headers attr_accessor :url, :method, :body, :headers, :secret, :authentication 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 def serialized_body @body end def uri @uri ||= URI.parse(url) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
actionhook-1.0.2 | lib/actionhook/core/request.rb |
actionhook-1.0.1 | lib/actionhook/core/request.rb |
actionhook-1.0.0 | lib/actionhook/core/request.rb |