Class: Pbx::Messages::CallStarted

Inherits:
Bubbletea::Message
  • Object
show all
Defined in:
lib/pbx/messages.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uniqueid:, channel:, caller_id:, caller_name:, state:, started_at:) ⇒ CallStarted

Returns a new instance of CallStarted.



71
72
73
74
75
76
77
78
79
# File 'lib/pbx/messages.rb', line 71

def initialize(uniqueid:, channel:, caller_id:, caller_name:, state:, started_at:)
  super()
  @uniqueid = uniqueid
  @channel = channel
  @caller_id = caller_id
  @caller_name = caller_name
  @state = state
  @started_at = started_at
end

Instance Attribute Details

#caller_idObject (readonly)

Returns the value of attribute caller_id.



69
70
71
# File 'lib/pbx/messages.rb', line 69

def caller_id
  @caller_id
end

#caller_nameObject (readonly)

Returns the value of attribute caller_name.



69
70
71
# File 'lib/pbx/messages.rb', line 69

def caller_name
  @caller_name
end

#channelObject (readonly)

Returns the value of attribute channel.



69
70
71
# File 'lib/pbx/messages.rb', line 69

def channel
  @channel
end

#started_atObject (readonly)

Returns the value of attribute started_at.



69
70
71
# File 'lib/pbx/messages.rb', line 69

def started_at
  @started_at
end

#stateObject (readonly)

Returns the value of attribute state.



69
70
71
# File 'lib/pbx/messages.rb', line 69

def state
  @state
end

#uniqueidObject (readonly)

Returns the value of attribute uniqueid.



69
70
71
# File 'lib/pbx/messages.rb', line 69

def uniqueid
  @uniqueid
end