Class: Appwrite::Models::DedicatedDatabaseOperation
- Inherits:
-
Object
- Object
- Appwrite::Models::DedicatedDatabaseOperation
- Defined in:
- lib/appwrite/models/dedicated_database_operation.rb
Instance Attribute Summary collapse
-
#attempts ⇒ Object
readonly
Returns the value of attribute attempts.
-
#completed_at ⇒ Object
readonly
Returns the value of attribute completed_at.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#database_id ⇒ Object
readonly
Returns the value of attribute database_id.
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#requested_at ⇒ Object
readonly
Returns the value of attribute requested_at.
-
#started_at ⇒ Object
readonly
Returns the value of attribute started_at.
-
#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(id:, created_at:, database_id:, type:, status:, attempts:, requested_at:, started_at:, completed_at:, error_code:, error_message:) ⇒ DedicatedDatabaseOperation
constructor
A new instance of DedicatedDatabaseOperation.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, created_at:, database_id:, type:, status:, attempts:, requested_at:, started_at:, completed_at:, error_code:, error_message:) ⇒ DedicatedDatabaseOperation
Returns a new instance of DedicatedDatabaseOperation.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/appwrite/models/dedicated_database_operation.rb', line 18 def initialize( id:, created_at:, database_id:, type:, status:, attempts:, requested_at: , started_at: , completed_at: , error_code:, error_message: ) @id = id @created_at = created_at @database_id = database_id @type = type @status = status @attempts = attempts @requested_at = requested_at @started_at = started_at @completed_at = completed_at @error_code = error_code @error_message = end |
Instance Attribute Details
#attempts ⇒ Object (readonly)
Returns the value of attribute attempts.
11 12 13 |
# File 'lib/appwrite/models/dedicated_database_operation.rb', line 11 def attempts @attempts end |
#completed_at ⇒ Object (readonly)
Returns the value of attribute completed_at.
14 15 16 |
# File 'lib/appwrite/models/dedicated_database_operation.rb', line 14 def completed_at @completed_at end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
7 8 9 |
# File 'lib/appwrite/models/dedicated_database_operation.rb', line 7 def created_at @created_at end |
#database_id ⇒ Object (readonly)
Returns the value of attribute database_id.
8 9 10 |
# File 'lib/appwrite/models/dedicated_database_operation.rb', line 8 def database_id @database_id end |
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
15 16 17 |
# File 'lib/appwrite/models/dedicated_database_operation.rb', line 15 def error_code @error_code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
16 17 18 |
# File 'lib/appwrite/models/dedicated_database_operation.rb', line 16 def @error_message end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/dedicated_database_operation.rb', line 6 def id @id end |
#requested_at ⇒ Object (readonly)
Returns the value of attribute requested_at.
12 13 14 |
# File 'lib/appwrite/models/dedicated_database_operation.rb', line 12 def requested_at @requested_at end |
#started_at ⇒ Object (readonly)
Returns the value of attribute started_at.
13 14 15 |
# File 'lib/appwrite/models/dedicated_database_operation.rb', line 13 def started_at @started_at end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
10 11 12 |
# File 'lib/appwrite/models/dedicated_database_operation.rb', line 10 def status @status end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'lib/appwrite/models/dedicated_database_operation.rb', line 9 def type @type end |
Class Method Details
.from(map:) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/appwrite/models/dedicated_database_operation.rb', line 44 def self.from(map:) DedicatedDatabaseOperation.new( id: map["$id"], created_at: map["$createdAt"], database_id: map["databaseId"], type: map["type"], status: map["status"], attempts: map["attempts"], requested_at: map["requestedAt"], started_at: map["startedAt"], completed_at: map["completedAt"], error_code: map["errorCode"], error_message: map["errorMessage"] ) end |
Instance Method Details
#to_map ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/appwrite/models/dedicated_database_operation.rb', line 60 def to_map { "$id": @id, "$createdAt": @created_at, "databaseId": @database_id, "type": @type, "status": @status, "attempts": @attempts, "requestedAt": @requested_at, "startedAt": @started_at, "completedAt": @completed_at, "errorCode": @error_code, "errorMessage": @error_message } end |