Class: AriaCoreRestClient

Inherits:
AriaRestClient show all
Defined in:
lib/aria_sdk/aria_core_rest_client.rb

Instance Attribute Summary collapse

Attributes inherited from AriaRestClient

#auth_key, #client_no, #url

Instance Method Summary collapse

Methods inherited from AriaRestClient

#call

Constructor Details

#initialize(client_no, auth_key, prod = false) ⇒ AriaCoreRestClient

Returns a new instance of AriaCoreRestClient.



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/aria_sdk/aria_core_rest_client.rb', line 7

def initialize client_no, auth_key, prod = false
    @prod = prod

    url = if prod
        'https://secure.ariasystems.net/api/ws/api_ws_class_dispatcher.php'
    else
        'https://secure.future.stage.ariasystems.net/api/ws/api_ws_class_dispatcher.php'
    end

    super client_no, auth_key, url
end

Instance Attribute Details

#prodObject (readonly)

Returns the value of attribute prod.



5
6
7
# File 'lib/aria_sdk/aria_core_rest_client.rb', line 5

def prod
  @prod
end