Class: Twirbet::Transport::Request

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/twirbet/transport.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



16
17
18
# File 'lib/twirbet/transport.rb', line 16

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers.



19
20
21
# File 'lib/twirbet/transport.rb', line 19

def headers
  @headers
end

#urlObject (readonly)

Returns the value of attribute url.



13
14
15
# File 'lib/twirbet/transport.rb', line 13

def url
  @url
end