Module: Saman
- Defined in:
- lib/saman.rb,
lib/saman/verify.rb,
lib/saman/authorize.rb,
lib/saman/health_check.rb,
lib/saman/configuration.rb,
lib/generators/saman/install_generator.rb
Overview
Saman module for gateway communications
Defined Under Namespace
Modules: Generators Classes: Client, Configuration
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
- .authorize(params) ⇒ Object
- .configure {|configuration| ... } ⇒ Object
- .up? ⇒ Boolean
- .verify(params) ⇒ Object
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
6 7 8 |
# File 'lib/saman/configuration.rb', line 6 def configuration @configuration end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
16 17 18 |
# File 'lib/saman.rb', line 16 def config @config end |
Class Method Details
.authorize(params) ⇒ Object
18 19 20 |
# File 'lib/saman.rb', line 18 def self.(params) Saman::Client.new.(params) end |
.configure {|configuration| ... } ⇒ Object
9 10 11 12 |
# File 'lib/saman/configuration.rb', line 9 def self.configure self.configuration ||= Configuration.new yield(configuration) end |
.up? ⇒ Boolean
26 27 28 |
# File 'lib/saman.rb', line 26 def self.up? Saman::Client.new.health_check end |