Class: LlmCassette::RequestSignature
- Inherits:
-
Object
- Object
- LlmCassette::RequestSignature
- Defined in:
- lib/llm_cassette/request_signature.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(env) ⇒ RequestSignature
constructor
A new instance of RequestSignature.
Constructor Details
#initialize(env) ⇒ RequestSignature
Returns a new instance of RequestSignature.
9 10 11 12 13 |
# File 'lib/llm_cassette/request_signature.rb', line 9 def initialize(env) @method = env.method.to_s.downcase @uri = env.url.to_s @body = normalize_body(env.body) end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
7 8 9 |
# File 'lib/llm_cassette/request_signature.rb', line 7 def body @body end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
7 8 9 |
# File 'lib/llm_cassette/request_signature.rb', line 7 def method @method end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
7 8 9 |
# File 'lib/llm_cassette/request_signature.rb', line 7 def uri @uri end |