Class: Appwrite::Models::AlertList
- Inherits:
-
Object
- Object
- Appwrite::Models::AlertList
- Defined in:
- lib/appwrite/models/alert_list.rb
Instance Attribute Summary collapse
-
#alerts ⇒ Object
readonly
Returns the value of attribute alerts.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(total:, alerts:) ⇒ AlertList
constructor
A new instance of AlertList.
- #to_map ⇒ Object
Constructor Details
#initialize(total:, alerts:) ⇒ AlertList
Returns a new instance of AlertList.
9 10 11 12 13 14 15 |
# File 'lib/appwrite/models/alert_list.rb', line 9 def initialize( total:, alerts: ) @total = total @alerts = alerts end |
Instance Attribute Details
#alerts ⇒ Object (readonly)
Returns the value of attribute alerts.
7 8 9 |
# File 'lib/appwrite/models/alert_list.rb', line 7 def alerts @alerts end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
6 7 8 |
# File 'lib/appwrite/models/alert_list.rb', line 6 def total @total end |
Class Method Details
Instance Method Details
#to_map ⇒ Object
25 26 27 28 29 30 |
# File 'lib/appwrite/models/alert_list.rb', line 25 def to_map { "total": @total, "alerts": @alerts.map { |it| it.to_map } } end |