Class: Twirbet::Transport::Request
- Inherits:
-
Object
- Object
- Twirbet::Transport::Request
- Extended by:
- T::Sig
- Defined in:
- lib/twirbet/transport.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, body, headers) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(url, body, headers) ⇒ Request
Returns a new instance of Request.
22 23 24 25 26 |
# File 'lib/twirbet/transport.rb', line 22 def initialize(url, body, headers) @url = url @body = body @headers = headers end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
16 17 18 |
# File 'lib/twirbet/transport.rb', line 16 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
19 20 21 |
# File 'lib/twirbet/transport.rb', line 19 def headers @headers end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
13 14 15 |
# File 'lib/twirbet/transport.rb', line 13 def url @url end |