class Orchestrate::Rails::Event

Class to support *dynamically defined* orchestrate.io/event instances

Public Class Methods

new(event_record) click to toggle source
# File rails/lib/orchestrate_rails/event.rb, line 11
def initialize(event_record)
  event_record.each do |k,v|
    self.class.send(:attr_reader, k.to_orchio_rails_attr)
    instance_variable_set("@#{k.to_orchio_rails_attr}", v)
  end
end

Public Instance Methods

id() click to toggle source
# File rails/lib/orchestrate_rails/event.rb, line 18
def id
  @timestamp
end