class Eloan::Client
Attributes
configurate[RW]
Public Class Methods
new(config)
click to toggle source
# File lib/eloan/client.rb, line 9 def initialize(config) @configurate = config end
Public Instance Methods
execute(method, url, options)
click to toggle source
# File lib/eloan/client.rb, line 13 def execute(method, url, options) if method == 'GET' response = RestClient.get(URI.escape(url), params: options) else response = RestClient.post(URI.escape(url), options) end raw_response response end