Module: EDH::Passport

Defined in:
lib/edh/api.rb,
lib/edh/errors.rb,
lib/edh/test_users.rb,
lib/edh/api/rest_api.rb

Defined Under Namespace

Modules: RestAPIMethods Classes: API, APIError, AuthenticationError, BadPassportResponse, ClientError, Configuration, ServerError, TestUsers

Constant Summary collapse

REST_SERVER =
"passport.everydayhero.com/api/v1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



7
8
9
# File 'lib/edh/api.rb', line 7

def configuration
  @configuration
end

Class Method Details

.configObject



9
10
11
# File 'lib/edh/api.rb', line 9

def config
  self.configuration || Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



14
15
16
17
# File 'lib/edh/api.rb', line 14

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end