Class: LicenseKit::RawResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/licensekit/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status:, headers:, data:, response:, body:) ⇒ RawResponse

Returns a new instance of RawResponse.



23
24
25
26
27
28
29
# File 'lib/licensekit/types.rb', line 23

def initialize(status:, headers:, data:, response:, body:)
  @status = status
  @headers = headers
  @data = data
  @response = response
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



21
22
23
# File 'lib/licensekit/types.rb', line 21

def body
  @body
end

#dataObject (readonly)

Returns the value of attribute data.



21
22
23
# File 'lib/licensekit/types.rb', line 21

def data
  @data
end

#headersObject (readonly)

Returns the value of attribute headers.



21
22
23
# File 'lib/licensekit/types.rb', line 21

def headers
  @headers
end

#responseObject (readonly)

Returns the value of attribute response.



21
22
23
# File 'lib/licensekit/types.rb', line 21

def response
  @response
end

#statusObject (readonly)

Returns the value of attribute status.



21
22
23
# File 'lib/licensekit/types.rb', line 21

def status
  @status
end