Class: LicenseKit::TransportRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



33
34
35
# File 'lib/licensekit/types.rb', line 33

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers.



33
34
35
# File 'lib/licensekit/types.rb', line 33

def headers
  @headers
end

#methodObject (readonly)

Returns the value of attribute method.



33
34
35
# File 'lib/licensekit/types.rb', line 33

def method
  @method
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



33
34
35
# File 'lib/licensekit/types.rb', line 33

def timeout
  @timeout
end

#urlObject (readonly)

Returns the value of attribute url.



33
34
35
# File 'lib/licensekit/types.rb', line 33

def url
  @url
end