Module: ProperProcess

Defined in:
lib/proper_process_api_ares.rb

Defined Under Namespace

Classes: Base, Procedure

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



16
17
18
# File 'lib/proper_process_api_ares.rb', line 16

def api_key
  @api_key
end

.siteObject

Returns the value of attribute site.



16
17
18
# File 'lib/proper_process_api_ares.rb', line 16

def site
  @site
end

Class Method Details

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

Yields:

  • (_self)

Yield Parameters:

  • _self (ProperProcess)

    the object that the method was called on



17
18
19
20
21
22
23
24
25
# File 'lib/proper_process_api_ares.rb', line 17

def configure
  yield self
  
  Base.user = api_key
  Base.password = 'x'

  self.site ||= "http://properprocess.com"
  Base.site = site
end