Method: AriaRestClient#call

Defined in:
lib/aria_sdk/aria_rest_client.rb

#call(api_name, options = {}) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/aria_sdk/aria_rest_client.rb', line 15

def call(api_name, options = {})

    defaults = {
        :output_format => 'json',
        :client_no => self.client_no,
        :auth_key => self.auth_key,
        :rest_call => api_name
    }

    options.merge!(defaults)

    result = self.class.post(self.url, :body => options)

    return result
end