Class: Appwrite::Models::DomainTransferStatus
- Inherits:
-
Object
- Object
- Appwrite::Models::DomainTransferStatus
- Defined in:
- lib/appwrite/models/domain_transfer_status.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(status:, reason:, timestamp:) ⇒ DomainTransferStatus
constructor
A new instance of DomainTransferStatus.
- #to_map ⇒ Object
Constructor Details
#initialize(status:, reason:, timestamp:) ⇒ DomainTransferStatus
Returns a new instance of DomainTransferStatus.
10 11 12 13 14 15 16 17 18 |
# File 'lib/appwrite/models/domain_transfer_status.rb', line 10 def initialize( status:, reason:, timestamp: ) @status = validate_status(status) @reason = reason @timestamp = end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
7 8 9 |
# File 'lib/appwrite/models/domain_transfer_status.rb', line 7 def reason @reason end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/appwrite/models/domain_transfer_status.rb', line 6 def status @status end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
8 9 10 |
# File 'lib/appwrite/models/domain_transfer_status.rb', line 8 def @timestamp end |
Class Method Details
.from(map:) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/appwrite/models/domain_transfer_status.rb', line 20 def self.from(map:) map = { "status" => "pending_registry", "reason" => "", "timestamp" => "" }.merge(map) DomainTransferStatus.new( status: map["status"], reason: map["reason"], timestamp: map["timestamp"] ) end |
Instance Method Details
#to_map ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/appwrite/models/domain_transfer_status.rb', line 29 def to_map { "status": @status, "reason": @reason, "timestamp": @timestamp } end |