Class: NeonOperations::GCPFunctionsManager

Inherits:
Object
  • Object
show all
Defined in:
lib/neon_operations.rb

Class Method Summary collapse

Class Method Details

.invoke_operation(operation, gcp_functions_event) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/neon_operations.rb', line 6

def self.invoke_operation(operation, gcp_functions_event)
  data = JSON.parse(
    Base64.strict_decode64(
      gcp_functions_event.data.fetch("message").fetch("data")
    )
  )

  operation.call(input: data)
end