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.
-
#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.
-
#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.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#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:, read:, function_id:, trigger:, status:, status_code:, response:, stderr:, time:) ⇒ Execution
constructor
A new instance of Execution.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, created_at:, updated_at:, read:, function_id:, trigger:, status:, status_code:, response:, stderr:, time:) ⇒ Execution
Returns a new instance of Execution.
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/execution.rb', line 18 def initialize( id:, created_at:, updated_at:, read:, function_id:, trigger:, status:, status_code:, response:, stderr:, time: ) @id = id @created_at = created_at @updated_at = updated_at @read = read @function_id = function_id @trigger = trigger @status = status @status_code = status_code @response = response @stderr = stderr @time = time 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 |
#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 |
#read ⇒ Object (readonly)
Returns the value of attribute read.
9 10 11 |
# File 'lib/appwrite/models/execution.rb', line 9 def read @read 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.
15 16 17 |
# File 'lib/appwrite/models/execution.rb', line 15 def stderr @stderr end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
16 17 18 |
# File 'lib/appwrite/models/execution.rb', line 16 def time @time 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
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/appwrite/models/execution.rb', line 44 def self.from(map:) Execution.new( id: map["$id"], created_at: map["$createdAt"], updated_at: map["$updatedAt"], read: map["$read"], function_id: map["functionId"], trigger: map["trigger"], status: map["status"], status_code: map["statusCode"], response: map["response"], stderr: map["stderr"], time: map["time"] ) 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/execution.rb', line 60 def to_map { "$id": @id, "$createdAt": @created_at, "$updatedAt": @updated_at, "$read": @read, "functionId": @function_id, "trigger": @trigger, "status": @status, "statusCode": @status_code, "response": @response, "stderr": @stderr, "time": @time } end |