Class: MerchantESolutions::Request

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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 = {})
  @options = options
  get_request
end

Instance Attribute Details

#bodyObject (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

#uriObject



15
16
17
# File 'lib/merchant_e_solutions/request.rb', line 15

def uri
  URI.parse(BASE_URL + '?' + param_string)
end