Module: GcxApi

Defined in:
lib/gcx_api.rb,
lib/gcx_api/version.rb

Defined Under Namespace

Classes: Cas, Site, User

Constant Summary collapse

VERSION =
"0.0.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.cas_passwordObject

Returns the value of attribute cas_password.



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

def cas_password
  @cas_password
end

.cas_urlObject

Returns the value of attribute cas_url.



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

def cas_url
  @cas_url
end

.cas_usernameObject

Returns the value of attribute cas_username.



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

def cas_username
  @cas_username
end

.gcx_urlObject

Returns the value of attribute gcx_url.



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

def gcx_url
  @gcx_url
end

Class Method Details

.config {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (GcxApi)

    the object that the method was called on



7
8
9
10
11
12
# File 'lib/gcx_api.rb', line 7

def config
  yield self

  self.gcx_url ||= 'https://wpdev.gcx.org'
  self.cas_url ||= 'https://casdev.gcx.org'
end