Module: RelayApiClient

Defined in:
lib/relay_api_client.rb,
lib/relay_api_client/base.rb,
lib/relay_api_client/version.rb

Defined Under Namespace

Classes: Base

Constant Summary collapse

VERSION =
"0.0.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.linker_passwordObject

Returns the value of attribute linker_password.



6
7
8
# File 'lib/relay_api_client.rb', line 6

def linker_password
  @linker_password
end

.linker_usernameObject

Returns the value of attribute linker_username.



6
7
8
# File 'lib/relay_api_client.rb', line 6

def linker_username
  @linker_username
end

.wsdlObject

Returns the value of attribute wsdl.



6
7
8
# File 'lib/relay_api_client.rb', line 6

def wsdl
  @wsdl
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/relay_api_client.rb', line 8

def configure
  yield self

  self.wsdl ||= 'https://signin.cru.org/sso/selfservice/webservice/5.0?wsdl'

  if linker_username && linker_password
    IdentityLinker.configure do |c|
      c.server_id = linker_username
      c.server_secret = linker_password
    end
  end
end