Class: PaynetEasy::PaynetEasyApi::Transport::Request
- Inherits:
-
Object
- Object
- PaynetEasy::PaynetEasyApi::Transport::Request
- Defined in:
- lib/paynet_easy/paynet_easy_api/transport/request.rb
Instance Attribute Summary collapse
-
#api_method ⇒ Object
Returns the value of attribute api_method.
-
#end_point ⇒ Object
Returns the value of attribute end_point.
-
#gateway_url ⇒ Object
Returns the value of attribute gateway_url.
-
#request_fields ⇒ Object
readonly
Returns the value of attribute request_fields.
Instance Method Summary collapse
-
#initialize(request_fields = {}) ⇒ Request
constructor
A new instance of Request.
- #signature=(signature) ⇒ Object
Constructor Details
#initialize(request_fields = {}) ⇒ Request
Returns a new instance of Request.
8 9 10 |
# File 'lib/paynet_easy/paynet_easy_api/transport/request.rb', line 8 def initialize(request_fields = {}) @request_fields = request_fields end |
Instance Attribute Details
#api_method ⇒ Object
Returns the value of attribute api_method.
3 4 5 |
# File 'lib/paynet_easy/paynet_easy_api/transport/request.rb', line 3 def api_method @api_method end |
#end_point ⇒ Object
Returns the value of attribute end_point.
4 5 6 |
# File 'lib/paynet_easy/paynet_easy_api/transport/request.rb', line 4 def end_point @end_point end |
#gateway_url ⇒ Object
Returns the value of attribute gateway_url.
5 6 7 |
# File 'lib/paynet_easy/paynet_easy_api/transport/request.rb', line 5 def gateway_url @gateway_url end |
#request_fields ⇒ Object (readonly)
Returns the value of attribute request_fields.
6 7 8 |
# File 'lib/paynet_easy/paynet_easy_api/transport/request.rb', line 6 def request_fields @request_fields end |
Instance Method Details
#signature=(signature) ⇒ Object
16 17 18 |
# File 'lib/paynet_easy/paynet_easy_api/transport/request.rb', line 16 def signature=(signature) request_fields['control'] = signature end |