Class: DiscordStore::Transport::Request
- Inherits:
-
Struct
- Object
- Struct
- DiscordStore::Transport::Request
- Defined in:
- lib/discord_store/transport/http.rb
Overview
A request that has not been sent yet. Kept as a value object so the fake backend can assert against exactly what the real one would have sent.
The HTTP verb is verb, not method: a Struct member called method would
shadow Object#method, and losing that on a value object passed through
several layers is not worth the nicer name.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#url ⇒ Object
Returns the value of attribute url.
-
#verb ⇒ Object
Returns the value of attribute verb.
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
31 32 33 |
# File 'lib/discord_store/transport/http.rb', line 31 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
31 32 33 |
# File 'lib/discord_store/transport/http.rb', line 31 def headers @headers end |
#url ⇒ Object
Returns the value of attribute url
31 32 33 |
# File 'lib/discord_store/transport/http.rb', line 31 def url @url end |
#verb ⇒ Object
Returns the value of attribute verb
31 32 33 |
# File 'lib/discord_store/transport/http.rb', line 31 def verb @verb end |