Module: Switchboard::Helpers::OAuthPubSubHelper
- Includes:
- PubSubHelper
- Defined in:
- lib/switchboard/helpers/oauth_pubsub.rb
Instance Attribute Summary collapse
-
#oauth_consumer ⇒ Object
readonly
Returns the value of attribute oauth_consumer.
-
#oauth_token ⇒ Object
readonly
Returns the value of attribute oauth_token.
Attributes included from PubSubHelper
Instance Method Summary collapse
Instance Attribute Details
#oauth_consumer ⇒ Object (readonly)
Returns the value of attribute oauth_consumer.
20 21 22 |
# File 'lib/switchboard/helpers/oauth_pubsub.rb', line 20 def oauth_consumer @oauth_consumer end |
#oauth_token ⇒ Object (readonly)
Returns the value of attribute oauth_token.
20 21 22 |
# File 'lib/switchboard/helpers/oauth_pubsub.rb', line 20 def oauth_token @oauth_token end |
Instance Method Details
#subscriptions(node = nil) ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'lib/switchboard/helpers/oauth_pubsub.rb', line 29 def subscriptions(node = nil) if node # TODO this needs to be implemented in OAuthServiceHelper pubsub.get_subscriptions_from(node, oauth_consumer, oauth_token) else pubsub.get_subscriptions_from_all_nodes(oauth_consumer, oauth_token) end end |