Class: PagSeguro::Request
- Inherits:
-
Object
- Object
- PagSeguro::Request
show all
- Includes:
- HTTParty
- Defined in:
- lib/pagseguro/request.rb
Instance Method Summary
collapse
Instance Method Details
#get(path) ⇒ Object
10
11
12
13
14
15
16
17
|
# File 'lib/pagseguro/request.rb', line 10
def get(path)
options = { query: {
email: PagSeguro.email,
token: PagSeguro.token
}
}
self.class.get(path, options)
end
|
#post(path, params = {}) ⇒ Object
19
20
21
22
23
24
|
# File 'lib/pagseguro/request.rb', line 19
def post(path, params = {})
options = add_credencials(params)
response = self.class.post(path, options)
response.parsed_response
end
|