Class: Repp::Event::Base
- Inherits:
-
Object
- Object
- Repp::Event::Base
- Extended by:
- Attributes
- Defined in:
- lib/repp/event/base.rb
Constant Summary
Constants included from Attributes
Attributes::EVENT_TYPE, Attributes::RECERVED_WORDS
Instance Method Summary collapse
-
#initialize(params) ⇒ Base
constructor
A new instance of Base.
Methods included from Attributes
Constructor Details
#initialize(params) ⇒ Base
Returns a new instance of Base.
24 25 26 27 28 29 30 |
# File 'lib/repp/event/base.rb', line 24 def initialize(params) @attributes = {} return unless params.respond_to?(:each_pair) params.each_pair do |k, v| @attributes[k.to_s] = v end end |