Module: ZeroPushWoosh
- Extended by:
- Forwardable
- Defined in:
- lib/zero_push_woosh.rb,
lib/zero_push_woosh/client.rb,
lib/zero_push_woosh/version.rb,
lib/zero_push_woosh/compatibility.rb,
lib/generators/zero_push_woosh/install_generator.rb
Defined Under Namespace
Modules: Compatibility Classes: Client, InstallGenerator
Constant Summary collapse
- VERSION =
'1.0.0'
Class Attribute Summary collapse
-
.auth_token ⇒ Object
Returns the value of attribute auth_token.
-
.auth_tokens ⇒ Object
Returns the value of attribute auth_tokens.
-
.config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
Class Attribute Details
.auth_token ⇒ Object
Returns the value of attribute auth_token.
8 9 10 |
# File 'lib/zero_push_woosh.rb', line 8 def auth_token @auth_token end |
.auth_tokens ⇒ Object
Returns the value of attribute auth_tokens.
8 9 10 |
# File 'lib/zero_push_woosh.rb', line 8 def auth_tokens @auth_tokens end |
.config ⇒ Object
Returns the value of attribute config.
8 9 10 |
# File 'lib/zero_push_woosh.rb', line 8 def config @config end |
Class Method Details
.client(auth_token = self.auth_token) ⇒ Object
28 29 30 |
# File 'lib/zero_push_woosh.rb', line 28 def client(auth_token = self.auth_token) ZeroPushWoosh::Client.new(auth_token) end |
.method_missing(method, *params, &block) ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/zero_push_woosh.rb', line 36 def method_missing(method, *params, &block) if auth_tokens.is_a?(Hash) && auth_tokens.keys.include?(method) self.client(auth_tokens[method]) else super end end |