Class: NodexPay::Transport::Request
- Inherits:
-
Data
- Object
- Data
- NodexPay::Transport::Request
- Defined in:
- lib/nodex_pay/transport.rb,
sig/nodex_pay.rbs
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.
-
#open_timeout ⇒ Object
readonly
Returns the value of attribute open_timeout.
-
#read_timeout ⇒ Object
readonly
Returns the value of attribute read_timeout.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
-
#write_timeout ⇒ Object
readonly
Returns the value of attribute write_timeout.
Instance Method Summary collapse
-
#initialize(method:, uri:, headers:, body:, open_timeout:, read_timeout:, write_timeout:) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(method:, uri:, headers:, body:, open_timeout:, read_timeout:, write_timeout:) ⇒ Request
Returns a new instance of Request.
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/nodex_pay/transport.rb', line 18 def initialize(method:, uri:, headers:, body:, open_timeout:, read_timeout:, write_timeout:) super( method:, uri: uri.dup.freeze, headers: immutable_headers(headers), body: body.dup.freeze, open_timeout:, read_timeout:, write_timeout: ) end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
9 10 11 |
# File 'lib/nodex_pay/transport.rb', line 9 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers
9 10 11 |
# File 'lib/nodex_pay/transport.rb', line 9 def headers @headers end |
#method ⇒ Object (readonly)
Returns the value of attribute method
9 10 11 |
# File 'lib/nodex_pay/transport.rb', line 9 def method @method end |
#open_timeout ⇒ Object (readonly)
Returns the value of attribute open_timeout
9 10 11 |
# File 'lib/nodex_pay/transport.rb', line 9 def open_timeout @open_timeout end |
#read_timeout ⇒ Object (readonly)
Returns the value of attribute read_timeout
9 10 11 |
# File 'lib/nodex_pay/transport.rb', line 9 def read_timeout @read_timeout end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri
9 10 11 |
# File 'lib/nodex_pay/transport.rb', line 9 def uri @uri end |
#write_timeout ⇒ Object (readonly)
Returns the value of attribute write_timeout
9 10 11 |
# File 'lib/nodex_pay/transport.rb', line 9 def write_timeout @write_timeout end |