class Relax::Event
Constants
- ATTRIBUTES
Public Class Methods
new(opts = {})
click to toggle source
# File lib/relax/event.rb, line 9 def initialize(opts = {}) opts.each { |k,v| self.send("#{k}=", v) if self.respond_to?("#{k}=") } end
Public Instance Methods
==(other)
click to toggle source
# File lib/relax/event.rb, line 19 def ==(other) other.respond_to?('channel_uid') && other.respond_to?('timestamp') && self.channel_uid == other.channel_uid && self.timestamp == other.timestamp end
Also aliased as: eql?
to_hash()
click to toggle source
# File lib/relax/event.rb, line 13 def to_hash hash = {} ATTRIBUTES.each { |a| hash[a] = self.send(a) } hash end