Class: Sapphire::DSL::Events::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/sapphire/DSL/Events/Event.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Event

Returns a new instance of Event.



14
15
16
17
# File 'lib/sapphire/DSL/Events/Event.rb', line 14

def initialize(name)
  @name = name
  @segments = {}
end

Instance Method Details

#AddSegment(segment) ⇒ Object



19
20
21
# File 'lib/sapphire/DSL/Events/Event.rb', line 19

def AddSegment(segment)
  @segments.merge! segment
end