Class: Polyn::CloudEvent
- Inherits:
-
Object
- Object
- Polyn::CloudEvent
- Defined in:
- lib/polyn/cloud_event.rb
Overview
Access cloud event information
Class Method Summary collapse
Class Method Details
.to_h ⇒ Object
7 8 9 10 11 |
# File 'lib/polyn/cloud_event.rb', line 7 def self.to_h path = File.(File.join(File.dirname(__FILE__), "../cloud-event-schema.json")) file = File.open(path) JSON.parse(file.read) end |