Class: Polyn::CloudEvent

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

Overview

Access cloud event information

Class Method Summary collapse

Class Method Details

.to_hObject



7
8
9
10
11
# File 'lib/polyn/cloud_event.rb', line 7

def self.to_h
  path = File.expand_path(File.join(File.dirname(__FILE__), "../cloud-event-schema.json"))
  file = File.open(path)
  JSON.parse(file.read)
end