Class: DiscordStore::Transport::Request

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#body ⇒ Object

Returns the value of attribute body

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of verb



31
32
33
# File 'lib/discord_store/transport/http.rb', line 31

def verb
  @verb
end