Class: MerchantESolutions::Request
- Inherits:
-
Object
- Object
- MerchantESolutions::Request
- Defined in:
- lib/merchant_e_solutions/request.rb
Constant Summary collapse
- BASE_URL =
"https://www.merchante-solutions.com/jsp/reports/report_api.jsp"
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Request
constructor
A new instance of Request.
- #uri ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Request
Returns a new instance of Request.
10 11 12 13 |
# File 'lib/merchant_e_solutions/request.rb', line 10 def initialize( = {}) @options = get_request end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
8 9 10 |
# File 'lib/merchant_e_solutions/request.rb', line 8 def body @body end |
Instance Method Details
#uri ⇒ Object
15 16 17 |
# File 'lib/merchant_e_solutions/request.rb', line 15 def uri URI.parse(BASE_URL + '?' + param_string) end |