class AsteriskManager::Event

Attributes

attributes[RW]

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/asterisk-manager/event.rb, line 5
def initialize(attributes = {})
  self.attributes = attributes.freeze
end

Public Instance Methods

[](key) click to toggle source
# File lib/asterisk-manager/event.rb, line 13
def [](key)
  attributes[key]
end
type() click to toggle source
# File lib/asterisk-manager/event.rb, line 9
def type
  attributes['Event']
end