# File lib/event/event.rb, line 165 def initialize(impl, number) @impl = impl class_name = Cproton.pn_class_name(Cproton.pn_event_class(impl)) context = class_wrapper(class_name, Cproton.pn_event_context(impl)) event_type = EventType.by_type(Cproton.pn_event_type(impl)) super(class_name, context, event_type) @type = EventType.by_type(number) self.class.store_instance(self, :pn_event_attachments) end