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