Class: LicenseKit::TransportResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status:, headers:, body:) ⇒ TransportResponse

Returns a new instance of TransportResponse.



47
48
49
50
51
# File 'lib/licensekit/types.rb', line 47

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



45
46
47
# File 'lib/licensekit/types.rb', line 45

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers.



45
46
47
# File 'lib/licensekit/types.rb', line 45

def headers
  @headers
end

#statusObject (readonly)

Returns the value of attribute status.



45
46
47
# File 'lib/licensekit/types.rb', line 45

def status
  @status
end