Class: Repp::Event::Base

Inherits:
Object
  • Object
show all
Extended by:
Attributes
Defined in:
lib/repp/event/base.rb

Direct Known Subclasses

Receive, Ticker

Constant Summary

Constants included from Attributes

Attributes::EVENT_TYPE, Attributes::RECERVED_WORDS

Instance Method Summary collapse

Methods included from Attributes

event_type, interface

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