Class: Appwrite::Models::HealthQueue
- Inherits:
-
Object
- Object
- Appwrite::Models::HealthQueue
- Defined in:
- lib/appwrite/models/health_queue.rb
Instance Attribute Summary collapse
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(size:) ⇒ HealthQueue
constructor
A new instance of HealthQueue.
- #to_map ⇒ Object
Constructor Details
#initialize(size:) ⇒ HealthQueue
Returns a new instance of HealthQueue.
8 9 10 11 12 |
# File 'lib/appwrite/models/health_queue.rb', line 8 def initialize( size: ) @size = size end |
Instance Attribute Details
#size ⇒ Object (readonly)
Returns the value of attribute size.
6 7 8 |
# File 'lib/appwrite/models/health_queue.rb', line 6 def size @size end |
Class Method Details
.from(map:) ⇒ Object
14 15 16 17 18 |
# File 'lib/appwrite/models/health_queue.rb', line 14 def self.from(map:) HealthQueue.new( size: map["size"] ) end |
Instance Method Details
#to_map ⇒ Object
20 21 22 23 24 |
# File 'lib/appwrite/models/health_queue.rb', line 20 def to_map { "size": @size } end |