Class: Rubyfox::Client::EventParams

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/rubyfox/client/event.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ EventParams

Returns a new instance of EventParams.



30
31
32
# File 'lib/rubyfox/client/event.rb', line 30

def initialize(hash)
  @hash = hash
end

Instance Method Details

#[](key) ⇒ Object



34
35
36
# File 'lib/rubyfox/client/event.rb', line 34

def [](key)
  @hash[key.to_s]
end

#each(&block) ⇒ Object



38
39
40
# File 'lib/rubyfox/client/event.rb', line 38

def each(&block)
  @hash.each(&block)
end

#inspectObject



42
43
44
# File 'lib/rubyfox/client/event.rb', line 42

def inspect
  @hash.inspect
end