Class: RubyAMI::Event

Inherits:
Response show all
Defined in:
lib/ruby_ami/event.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#action, #events, #text_body

Instance Method Summary collapse

Methods inherited from Response

#[], #[]=, #action_id, from_immediate_response, #has_text_body?, #headers

Constructor Details

#initialize(name) ⇒ Event

Returns a new instance of Event.



5
6
7
8
# File 'lib/ruby_ami/event.rb', line 5

def initialize(name)
  super()
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/ruby_ami/event.rb', line 3

def name
  @name
end