Class: Houston::Extensions::RegisterEventDsl
- Inherits:
-
Object
- Object
- Houston::Extensions::RegisterEventDsl
- Defined in:
- lib/houston/boot/extensions/events.rb
Instance Method Summary collapse
- #description(value) ⇒ Object (also: #desc)
-
#initialize ⇒ RegisterEventDsl
constructor
A new instance of RegisterEventDsl.
- #params(*params) ⇒ Object
- #to_h ⇒ Object
Constructor Details
#initialize ⇒ RegisterEventDsl
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_h ⇒ Object
62 63 64 |
# File 'lib/houston/boot/extensions/events.rb', line 62 def to_h @hash end |