Class: Twirbet::Transport::Response

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(status, headers, body) ⇒ Response

Returns a new instance of Response.



42
43
44
45
46
# File 'lib/twirbet/transport.rb', line 42

def initialize(status, headers, body)
  @status = status
  @headers = headers
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



39
40
41
# File 'lib/twirbet/transport.rb', line 39

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers.



36
37
38
# File 'lib/twirbet/transport.rb', line 36

def headers
  @headers
end

#statusObject (readonly)

Returns the value of attribute status.



33
34
35
# File 'lib/twirbet/transport.rb', line 33

def status
  @status
end