Module: MxitApi

Extended by:
MxitApi
Included in:
MxitApi
Defined in:
lib/mxit-api.rb,
lib/mxit_api/client.rb,
lib/mxit_api/config.rb,
lib/mxit_api/exception.rb,
lib/mxit_api/auth_token.rb,
lib/mxit_api/request_exception.rb,
lib/mxit_api/controller_extensions.rb

Defined Under Namespace

Modules: ControllerExtensions Classes: AuthToken, Client, Config, Exception, RequestException

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config.



10
11
12
# File 'lib/mxit-api.rb', line 10

def config
  @config
end

Instance Method Details

#configure {|config| ... } ⇒ Object

Call this method to modify defaults in your initializers.

Examples:

MxitApi.configure do |config|
  config.mxit_app_name = 'mxitmoney'
end

Yields:



18
19
20
21
# File 'lib/mxit-api.rb', line 18

def configure
  self.config ||= MxitApi::Config.new
  yield(config)
end