Class: RubyAMI::Event
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Response
Instance Method Summary collapse
-
#initialize(name, headers = {}) ⇒ Event
constructor
A new instance of Event.
- #inspect_attributes ⇒ Object
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
#name ⇒ Object (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_attributes ⇒ Object
13 14 15 |
# File 'lib/ruby_ami/event.rb', line 13 def inspect_attributes [:name] + super end |