Class: Appwrite::Models::ProxyInvalidation
- Inherits:
-
Object
- Object
- Appwrite::Models::ProxyInvalidation
- Defined in:
- lib/appwrite/models/proxy_invalidation.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(domain:, type:, reference:, status:) ⇒ ProxyInvalidation
constructor
A new instance of ProxyInvalidation.
- #to_map ⇒ Object
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
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
6 7 8 |
# File 'lib/appwrite/models/proxy_invalidation.rb', line 6 def domain @domain end |
#reference ⇒ Object (readonly)
Returns the value of attribute reference.
8 9 10 |
# File 'lib/appwrite/models/proxy_invalidation.rb', line 8 def reference @reference end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
9 10 11 |
# File 'lib/appwrite/models/proxy_invalidation.rb', line 9 def status @status end |
#type ⇒ Object (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_map ⇒ Object
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 |