Class: StagedEvent::GooglePubSub::Helper
- Inherits:
-
Object
- Object
- StagedEvent::GooglePubSub::Helper
- Defined in:
- lib/staged_event/google_pub_sub/helper.rb
Class Method Summary collapse
Class Method Details
.new_google_pubsub ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/staged_event/google_pub_sub/helper.rb', line 7 def new_google_pubsub credentials = Configuration.config.google_pubsub.credentials.to_h project_id = credentials[:project_id] Google::Cloud::PubSub.new( project_id: project_id, credentials: credentials, ) end |