Module: Payoneer::RemoteApi
Class Method Summary collapse
Instance Method Summary collapse
- #delete(path:, body: {}, options: {}) ⇒ Object
- #get(path:, options: {}) ⇒ Object
- #post(path:, body: {}, options: {}) ⇒ Object
- #put(path:, body: {}, options: {}) ⇒ Object
Class Method Details
.extended(base) ⇒ Object
5 6 7 8 9 |
# File 'lib/payoneer/remote_api.rb', line 5 def self.extended(base) return unless base.is_a? Module base.extend base end |
Instance Method Details
#delete(path:, body: {}, options: {}) ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lib/payoneer/remote_api.rb', line 37 def delete(path:, body: {}, options: {}) request( method: :delete, path: path, body: body, options: ) end |
#get(path:, options: {}) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/payoneer/remote_api.rb', line 20 def get(path:, options: {}) request( method: :get, path: path, options: ) end |
#post(path:, body: {}, options: {}) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/payoneer/remote_api.rb', line 11 def post(path:, body: {}, options: {}) request( method: :post, path: path, body: body, options: ) end |
#put(path:, body: {}, options: {}) ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/payoneer/remote_api.rb', line 28 def put(path:, body: {}, options: {}) request( method: :put, path: path, body: body, options: ) end |