module Subserver::Pubsub
Public Class Methods
client()
click to toggle source
# File lib/subserver/pubsub.rb, line 5 def self.client defined?(@client) ? @client : initialize_client end
client=(client)
click to toggle source
# File lib/subserver/pubsub.rb, line 9 def self.client=(client) @client = client end
initialize_client()
click to toggle source
# File lib/subserver/pubsub.rb, line 13 def self.initialize_client @client = Google::Cloud::Pubsub.new( project_id: options[:project_id] || ENV['PUBSUB_PROJECT_ID'], credentials: ( File.expand_path(options[:credentials]) if options[:credentials] ) ) end
options()
click to toggle source
# File lib/subserver/pubsub.rb, line 20 def self.options Subserver.options end