Module: GClouder::Resources::PubSub::Subscriptions::Remote
- Defined in:
- lib/gclouder/resources/pubsub/subscriptions.rb
Class Method Summary collapse
Class Method Details
.instances ⇒ Object
74 75 76 77 78 |
# File 'lib/gclouder/resources/pubsub/subscriptions.rb', line 74 def self.instances Resources::Remote.instances( path: %w(beta pubsub subscriptions) ) end |
.list ⇒ Object
70 71 72 |
# File 'lib/gclouder/resources/pubsub/subscriptions.rb', line 70 def self.list { "global" => instances.fetch("global", []).map { |subscription| { "name" => subscription["name"].split("/").last } } }.delete_if { |_k, v| v.empty? } end |