Module: Secuconnect
- Defined in:
- lib/secuconnect.rb,
lib/secuconnect/version.rb,
lib/secuconnect/connection.rb,
lib/secuconnect/oauth2/token.rb,
lib/secuconnect/authenticated.rb,
lib/secuconnect/configuration.rb,
lib/secuconnect/oauth2/client.rb,
lib/secuconnect/payment/client.rb,
lib/secuconnect/payment/contract.rb
Defined Under Namespace
Modules: Authenticated, Connection, Oauth2, Payment Classes: Configuration, Error
Constant Summary collapse
- VERSION =
"0.1.1"
Class Attribute Summary collapse
-
.cache ⇒ Object
Returns the value of attribute cache.
-
.config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
Class Attribute Details
.cache ⇒ Object
Returns the value of attribute cache.
20 21 22 |
# File 'lib/secuconnect.rb', line 20 def cache @cache end |
.config ⇒ Object
Returns the value of attribute config.
20 21 22 |
# File 'lib/secuconnect.rb', line 20 def config @config end |
Class Method Details
.configure {|config| ... } ⇒ Object
22 23 24 25 26 |
# File 'lib/secuconnect.rb', line 22 def configure self.cache ||= ActiveSupport::Cache::MemoryStore.new self.config ||= Configuration.new yield config end |
.reset ⇒ Object
28 29 30 |
# File 'lib/secuconnect.rb', line 28 def reset self.config = Configuration.new end |