Class: RubyAMI::Event

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

Instance Attribute Summary collapse

Attributes inherited from Response

#events, #text_body

Instance Method Summary collapse

Methods inherited from Response

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

Constructor Details

#initialize(name, headers = {}) ⇒ Event

Returns a new instance of Event.



8
9
10
11
# File 'lib/ruby_ami/event.rb', line 8

def initialize(name, headers = {})
  super headers
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#inspect_attributesObject



13
14
15
# File 'lib/ruby_ami/event.rb', line 13

def inspect_attributes
  [:name] + super
end