Class: VoiceML::EventsList
- Inherits:
-
Object
- Object
- VoiceML::EventsList
- Defined in:
- lib/voiceml/models/diagnostics.rb
Overview
‘GET /Calls/Sid/Events` — always an empty list (Twilio-compat stub). The canonical event source is the customer’s StatusCallback URL.
Instance Attribute Summary collapse
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#page_size ⇒ Object
readonly
Returns the value of attribute page_size.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ EventsList
constructor
A new instance of EventsList.
Constructor Details
#initialize(hash = {}) ⇒ EventsList
Returns a new instance of EventsList.
28 29 30 31 32 33 34 |
# File 'lib/voiceml/models/diagnostics.rb', line 28 def initialize(hash = {}) @events = hash['events'] || [] @page = hash['page'] || 0 @page_size = hash['page_size'] || 0 @total = hash['total'] || 0 @uri = hash['uri'] end |
Instance Attribute Details
#events ⇒ Object (readonly)
Returns the value of attribute events.
26 27 28 |
# File 'lib/voiceml/models/diagnostics.rb', line 26 def events @events end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
26 27 28 |
# File 'lib/voiceml/models/diagnostics.rb', line 26 def page @page end |
#page_size ⇒ Object (readonly)
Returns the value of attribute page_size.
26 27 28 |
# File 'lib/voiceml/models/diagnostics.rb', line 26 def page_size @page_size end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
26 27 28 |
# File 'lib/voiceml/models/diagnostics.rb', line 26 def total @total end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
26 27 28 |
# File 'lib/voiceml/models/diagnostics.rb', line 26 def uri @uri end |
Class Method Details
.from_hash(hash) ⇒ Object
36 37 38 |
# File 'lib/voiceml/models/diagnostics.rb', line 36 def self.from_hash(hash) new(hash || {}) end |