Module: RubySlime::Event
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/ruby_slime/event.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/ruby_slime/event.rb', line 7 def data @data end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
7 8 9 |
# File 'lib/ruby_slime/event.rb', line 7 def @metadata end |
Instance Method Details
#initialize(data: {}, metadata: nil) ⇒ Object
9 10 11 12 |
# File 'lib/ruby_slime/event.rb', line 9 def initialize(data: {}, metadata: nil) @data = data @metadata = end |