Class: LicenseKit::TransportRequest
- Inherits:
-
Object
- Object
- LicenseKit::TransportRequest
- 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.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(method:, url:, headers:, body:, timeout:) ⇒ TransportRequest
constructor
A new instance of TransportRequest.
Constructor Details
#initialize(method:, url:, headers:, body:, timeout:) ⇒ TransportRequest
Returns a new instance of TransportRequest.
35 36 37 38 39 40 41 |
# File 'lib/licensekit/types.rb', line 35 def initialize(method:, url:, headers:, body:, timeout:) @method = method @url = url @headers = headers @body = body @timeout = timeout end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
33 34 35 |
# File 'lib/licensekit/types.rb', line 33 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
33 34 35 |
# File 'lib/licensekit/types.rb', line 33 def headers @headers end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
33 34 35 |
# File 'lib/licensekit/types.rb', line 33 def method @method end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
33 34 35 |
# File 'lib/licensekit/types.rb', line 33 def timeout @timeout end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
33 34 35 |
# File 'lib/licensekit/types.rb', line 33 def url @url end |