module PupilfirstXapi::Statements

Constants

EVENTS

Public Class Methods

builder_for(event) click to toggle source
# File lib/pupilfirst_xapi/statements.rb, line 17
def self.builder_for(event)
  EVENTS.fetch(event)
end
subscribe(&block) click to toggle source
# File lib/pupilfirst_xapi/statements.rb, line 13
def self.subscribe(&block)
  EVENTS.each_key{|key| block.call(key)}
end