Class: VoiceML::NotificationsList
- Inherits:
-
Object
- Object
- VoiceML::NotificationsList
- Defined in:
- lib/voiceml/models/diagnostics.rb
Overview
‘GET /Calls/Sid/Notifications` — always an empty list (Twilio-compat stub).
Instance Attribute Summary collapse
-
#notifications ⇒ Object
readonly
Returns the value of attribute notifications.
-
#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 = {}) ⇒ NotificationsList
constructor
A new instance of NotificationsList.
Constructor Details
#initialize(hash = {}) ⇒ NotificationsList
Returns a new instance of NotificationsList.
10 11 12 13 14 15 16 |
# File 'lib/voiceml/models/diagnostics.rb', line 10 def initialize(hash = {}) @notifications = hash['notifications'] || [] @page = hash['page'] || 0 @page_size = hash['page_size'] || 0 @total = hash['total'] || 0 @uri = hash['uri'] end |
Instance Attribute Details
#notifications ⇒ Object (readonly)
Returns the value of attribute notifications.
8 9 10 |
# File 'lib/voiceml/models/diagnostics.rb', line 8 def notifications @notifications end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
8 9 10 |
# File 'lib/voiceml/models/diagnostics.rb', line 8 def page @page end |
#page_size ⇒ Object (readonly)
Returns the value of attribute page_size.
8 9 10 |
# File 'lib/voiceml/models/diagnostics.rb', line 8 def page_size @page_size end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
8 9 10 |
# File 'lib/voiceml/models/diagnostics.rb', line 8 def total @total end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
8 9 10 |
# File 'lib/voiceml/models/diagnostics.rb', line 8 def uri @uri end |
Class Method Details
.from_hash(hash) ⇒ Object
18 19 20 |
# File 'lib/voiceml/models/diagnostics.rb', line 18 def self.from_hash(hash) new(hash || {}) end |