Class: Polyn::Cli::CloudEvent

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

Overview

Access cloud event information

Class Method Summary collapse

Class Method Details

.to_hObject



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

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