Class: Appwrite::Models::Execution
- Inherits:
-
Object
- Object
- Appwrite::Models::Execution
- Defined in:
- lib/appwrite/models/execution.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#function_id ⇒ Object
readonly
Returns the value of attribute function_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#permissions ⇒ Object
readonly
Returns the value of attribute permissions.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
-
#trigger ⇒ Object
readonly
Returns the value of attribute trigger.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, created_at:, updated_at:, permissions:, function_id:, trigger:, status:, status_code:, response:, stdout:, stderr:, duration:) ⇒ Execution
constructor
A new instance of Execution.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, created_at:, updated_at:, permissions:, function_id:, trigger:, status:, status_code:, response:, stdout:, stderr:, duration:) ⇒ Execution
Returns a new instance of Execution.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/appwrite/models/execution.rb', line 19 def initialize( id:, created_at:, updated_at:, permissions:, function_id:, trigger:, status:, status_code:, response:, stdout:, stderr:, duration: ) @id = id @created_at = created_at @updated_at = updated_at @permissions = @function_id = function_id @trigger = trigger @status = status @status_code = status_code @response = response @stdout = stdout @stderr = stderr @duration = duration end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
7 8 9 |
# File 'lib/appwrite/models/execution.rb', line 7 def created_at @created_at end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
17 18 19 |
# File 'lib/appwrite/models/execution.rb', line 17 def duration @duration end |
#function_id ⇒ Object (readonly)
Returns the value of attribute function_id.
10 11 12 |
# File 'lib/appwrite/models/execution.rb', line 10 def function_id @function_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/execution.rb', line 6 def id @id end |
#permissions ⇒ Object (readonly)
Returns the value of attribute permissions.
9 10 11 |
# File 'lib/appwrite/models/execution.rb', line 9 def @permissions end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
14 15 16 |
# File 'lib/appwrite/models/execution.rb', line 14 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
12 13 14 |
# File 'lib/appwrite/models/execution.rb', line 12 def status @status end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
13 14 15 |
# File 'lib/appwrite/models/execution.rb', line 13 def status_code @status_code end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
16 17 18 |
# File 'lib/appwrite/models/execution.rb', line 16 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
15 16 17 |
# File 'lib/appwrite/models/execution.rb', line 15 def stdout @stdout end |
#trigger ⇒ Object (readonly)
Returns the value of attribute trigger.
11 12 13 |
# File 'lib/appwrite/models/execution.rb', line 11 def trigger @trigger end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/appwrite/models/execution.rb', line 8 def updated_at @updated_at end |
Class Method Details
.from(map:) ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/appwrite/models/execution.rb', line 47 def self.from(map:) Execution.new( id: map["$id"], created_at: map["$createdAt"], updated_at: map["$updatedAt"], permissions: map["$permissions"], function_id: map["functionId"], trigger: map["trigger"], status: map["status"], status_code: map["statusCode"], response: map["response"], stdout: map["stdout"], stderr: map["stderr"], duration: map["duration"] ) end |
Instance Method Details
#to_map ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/appwrite/models/execution.rb', line 64 def to_map { "$id": @id, "$createdAt": @created_at, "$updatedAt": @updated_at, "$permissions": @permissions, "functionId": @function_id, "trigger": @trigger, "status": @status, "statusCode": @status_code, "response": @response, "stdout": @stdout, "stderr": @stderr, "duration": @duration } end |