Class: Appwrite::Models::Deployment
- Inherits:
-
Object
- Object
- Appwrite::Models::Deployment
- Defined in:
- lib/appwrite/models/deployment.rb
Instance Attribute Summary collapse
-
#activate ⇒ Object
readonly
Returns the value of attribute activate.
-
#build_id ⇒ Object
readonly
Returns the value of attribute build_id.
-
#build_stderr ⇒ Object
readonly
Returns the value of attribute build_stderr.
-
#build_stdout ⇒ Object
readonly
Returns the value of attribute build_stdout.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#entrypoint ⇒ Object
readonly
Returns the value of attribute entrypoint.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#resource_id ⇒ Object
readonly
Returns the value of attribute resource_id.
-
#resource_type ⇒ Object
readonly
Returns the value of attribute resource_type.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#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:, resource_id:, resource_type:, entrypoint:, size:, build_id:, activate:, status:, build_stdout:, build_stderr:) ⇒ Deployment
constructor
A new instance of Deployment.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, created_at:, updated_at:, resource_id:, resource_type:, entrypoint:, size:, build_id:, activate:, status:, build_stdout:, build_stderr:) ⇒ Deployment
Returns a new instance of Deployment.
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/deployment.rb', line 19 def initialize( id:, created_at:, updated_at:, resource_id:, resource_type:, entrypoint:, size:, build_id:, activate:, status:, build_stdout:, build_stderr: ) @id = id @created_at = created_at @updated_at = updated_at @resource_id = resource_id @resource_type = resource_type @entrypoint = entrypoint @size = size @build_id = build_id @activate = activate @status = status @build_stdout = build_stdout @build_stderr = build_stderr end |
Instance Attribute Details
#activate ⇒ Object (readonly)
Returns the value of attribute activate.
14 15 16 |
# File 'lib/appwrite/models/deployment.rb', line 14 def activate @activate end |
#build_id ⇒ Object (readonly)
Returns the value of attribute build_id.
13 14 15 |
# File 'lib/appwrite/models/deployment.rb', line 13 def build_id @build_id end |
#build_stderr ⇒ Object (readonly)
Returns the value of attribute build_stderr.
17 18 19 |
# File 'lib/appwrite/models/deployment.rb', line 17 def build_stderr @build_stderr end |
#build_stdout ⇒ Object (readonly)
Returns the value of attribute build_stdout.
16 17 18 |
# File 'lib/appwrite/models/deployment.rb', line 16 def build_stdout @build_stdout end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
7 8 9 |
# File 'lib/appwrite/models/deployment.rb', line 7 def created_at @created_at end |
#entrypoint ⇒ Object (readonly)
Returns the value of attribute entrypoint.
11 12 13 |
# File 'lib/appwrite/models/deployment.rb', line 11 def entrypoint @entrypoint end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/deployment.rb', line 6 def id @id end |
#resource_id ⇒ Object (readonly)
Returns the value of attribute resource_id.
9 10 11 |
# File 'lib/appwrite/models/deployment.rb', line 9 def resource_id @resource_id end |
#resource_type ⇒ Object (readonly)
Returns the value of attribute resource_type.
10 11 12 |
# File 'lib/appwrite/models/deployment.rb', line 10 def resource_type @resource_type end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
12 13 14 |
# File 'lib/appwrite/models/deployment.rb', line 12 def size @size end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
15 16 17 |
# File 'lib/appwrite/models/deployment.rb', line 15 def status @status end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/appwrite/models/deployment.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/deployment.rb', line 47 def self.from(map:) Deployment.new( id: map["$id"], created_at: map["$createdAt"], updated_at: map["$updatedAt"], resource_id: map["resourceId"], resource_type: map["resourceType"], entrypoint: map["entrypoint"], size: map["size"], build_id: map["buildId"], activate: map["activate"], status: map["status"], build_stdout: map["buildStdout"], build_stderr: map["buildStderr"] ) 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/deployment.rb', line 64 def to_map { "$id": @id, "$createdAt": @created_at, "$updatedAt": @updated_at, "resourceId": @resource_id, "resourceType": @resource_type, "entrypoint": @entrypoint, "size": @size, "buildId": @build_id, "activate": @activate, "status": @status, "buildStdout": @build_stdout, "buildStderr": @build_stderr } end |