Class: Teams::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/teams/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status: 200, body: nil, headers: {}) ⇒ Response

Returns a new instance of Response.



5
6
7
# File 'lib/teams/response.rb', line 5

def initialize(status: 200, body: nil, headers: {})
  super(status:, body:, headers:)
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



4
5
6
# File 'lib/teams/response.rb', line 4

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



4
5
6
# File 'lib/teams/response.rb', line 4

def headers
  @headers
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



4
5
6
# File 'lib/teams/response.rb', line 4

def status
  @status
end