Class: Houston::Extensions::RegisterEventDsl

Inherits:
Object
  • Object
show all
Defined in:
lib/houston/boot/extensions/events.rb

Instance Method Summary collapse

Constructor Details

#initializeRegisterEventDsl

Returns a new instance of RegisterEventDsl.



47
48
49
# File 'lib/houston/boot/extensions/events.rb', line 47

def initialize
  @hash = {}
end

Instance Method Details

#description(value) ⇒ Object Also known as: desc



56
57
58
59
# File 'lib/houston/boot/extensions/events.rb', line 56

def description(value)
  @hash[:description] = value
  self
end

#params(*params) ⇒ Object



51
52
53
54
# File 'lib/houston/boot/extensions/events.rb', line 51

def params(*params)
  @hash[:params] = params
  self
end

#to_hObject



62
63
64
# File 'lib/houston/boot/extensions/events.rb', line 62

def to_h
  @hash
end