Class: Appwrite::Models::ProxyInvalidation

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain:, type:, reference:, status:) ⇒ ProxyInvalidation

Returns a new instance of ProxyInvalidation.



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/appwrite/models/proxy_invalidation.rb', line 11

def initialize(
    domain:,
    type:,
    reference:,
    status:
)
    @domain = domain
    @type = type
    @reference = reference
    @status = status
end

Instance Attribute Details

#domainObject (readonly)

Returns the value of attribute domain.



6
7
8
# File 'lib/appwrite/models/proxy_invalidation.rb', line 6

def domain
  @domain
end

#referenceObject (readonly)

Returns the value of attribute reference.



8
9
10
# File 'lib/appwrite/models/proxy_invalidation.rb', line 8

def reference
  @reference
end

#statusObject (readonly)

Returns the value of attribute status.



9
10
11
# File 'lib/appwrite/models/proxy_invalidation.rb', line 9

def status
  @status
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end

Class Method Details

.from(map:) ⇒ Object



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

def self.from(map:)
    ProxyInvalidation.new(
        domain: map["domain"],
        type: map["type"],
        reference: map["reference"],
        status: map["status"]
    )
end

Instance Method Details

#to_mapObject



32
33
34
35
36
37
38
39
# File 'lib/appwrite/models/proxy_invalidation.rb', line 32

def to_map
    {
        "domain": @domain,
        "type": @type,
        "reference": @reference,
        "status": @status
    }
end