Class: AriaAdmintoolsRestClient

Inherits:
AriaRestClient show all
Defined in:
lib/aria_sdk/aria_admintools_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) ⇒ AriaAdmintoolsRestClient

Returns a new instance of AriaAdmintoolsRestClient.



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

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

    url = if prod
        'https://admintools.ariasystems.net/AdminTools.php/Dispatcher'
    else
        'https://admintools.future.stage.ariasystems.net/AdminTools.php/Dispatcher'
    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_admintools_rest_client.rb', line 5

def prod
  @prod
end