Class: Appwrite::Models::HealthAntivirus

Inherits:
Object
  • Object
show all
Defined in:
lib/appwrite/models/health_antivirus.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#statusObject (readonly)

Returns the value of attribute status.



7
8
9
# File 'lib/appwrite/models/health_antivirus.rb', line 7

def status
  @status
end

#versionObject (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_mapObject



24
25
26
27
28
29
# File 'lib/appwrite/models/health_antivirus.rb', line 24

def to_map
    {
        "version": @version,
        "status": @status
    }
end