Module: SptyAPI
- Defined in:
- lib/spty_api.rb,
lib/spty_api/version.rb,
lib/spty_api/authorization.rb,
lib/spty_api/configuration.rb
Defined Under Namespace
Modules: HTTP Classes: Authorization, Configuration
Constant Summary collapse
- VERSION =
"0.0.5"
Class Attribute Summary collapse
-
.authorization ⇒ Object
Returns the value of attribute authorization.
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.authorization ⇒ Object
Returns the value of attribute authorization.
8 9 10 |
# File 'lib/spty_api.rb', line 8 def @authorization end |
.configuration ⇒ Object
Returns the value of attribute configuration.
8 9 10 |
# File 'lib/spty_api.rb', line 8 def configuration @configuration end |
Class Method Details
.client_authorize ⇒ Object
15 16 17 |
# File 'lib/spty_api.rb', line 15 def self. ||= Authorization.new(type: 'client_credentials') end |
.configure {|configuration| ... } ⇒ Object
10 11 12 13 |
# File 'lib/spty_api.rb', line 10 def configure self.configuration ||= Configuration.new yield(configuration) end |
.reset ⇒ Object
19 20 21 22 |
# File 'lib/spty_api.rb', line 19 def reset self.configuration = nil self. = nil end |