Class: LicenseKit::TransportResponse
- Inherits:
-
Object
- Object
- LicenseKit::TransportResponse
- Defined in:
- lib/licensekit/types.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status:, headers:, body:) ⇒ TransportResponse
constructor
A new instance of TransportResponse.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
45 46 47 |
# File 'lib/licensekit/types.rb', line 45 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
45 46 47 |
# File 'lib/licensekit/types.rb', line 45 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
45 46 47 |
# File 'lib/licensekit/types.rb', line 45 def status @status end |