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