Class: Appwrite::Models::Build
- Inherits:
 - 
      Object
      
        
- Object
 - Appwrite::Models::Build
 
 
- Defined in:
 - lib/appwrite/models/build.rb
 
Instance Attribute Summary collapse
- 
  
    
      #deployment_id  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute deployment_id.
 - 
  
    
      #duration  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute duration.
 - 
  
    
      #end_time  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute end_time.
 - 
  
    
      #id  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute id.
 - 
  
    
      #size  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute size.
 - 
  
    
      #start_time  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute start_time.
 - 
  
    
      #status  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute status.
 - 
  
    
      #stderr  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute stderr.
 - 
  
    
      #stdout  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute stdout.
 
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #initialize(id:, deployment_id:, status:, stdout:, stderr:, start_time:, end_time:, duration:, size:)  ⇒ Build 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Build.
 - #to_map ⇒ Object
 
Constructor Details
#initialize(id:, deployment_id:, status:, stdout:, stderr:, start_time:, end_time:, duration:, size:) ⇒ Build
Returns a new instance of Build.
      16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36  | 
    
      # File 'lib/appwrite/models/build.rb', line 16 def initialize( id:, deployment_id:, status:, stdout:, stderr:, start_time:, end_time:, duration:, size: ) @id = id @deployment_id = deployment_id @status = status @stdout = stdout @stderr = stderr @start_time = start_time @end_time = end_time @duration = duration @size = size end  | 
  
Instance Attribute Details
#deployment_id ⇒ Object (readonly)
Returns the value of attribute deployment_id.
      7 8 9  | 
    
      # File 'lib/appwrite/models/build.rb', line 7 def deployment_id @deployment_id end  | 
  
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
      13 14 15  | 
    
      # File 'lib/appwrite/models/build.rb', line 13 def duration @duration end  | 
  
#end_time ⇒ Object (readonly)
Returns the value of attribute end_time.
      12 13 14  | 
    
      # File 'lib/appwrite/models/build.rb', line 12 def end_time @end_time end  | 
  
#id ⇒ Object (readonly)
Returns the value of attribute id.
      6 7 8  | 
    
      # File 'lib/appwrite/models/build.rb', line 6 def id @id end  | 
  
#size ⇒ Object (readonly)
Returns the value of attribute size.
      14 15 16  | 
    
      # File 'lib/appwrite/models/build.rb', line 14 def size @size end  | 
  
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
      11 12 13  | 
    
      # File 'lib/appwrite/models/build.rb', line 11 def start_time @start_time end  | 
  
#status ⇒ Object (readonly)
Returns the value of attribute status.
      8 9 10  | 
    
      # File 'lib/appwrite/models/build.rb', line 8 def status @status end  | 
  
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
      10 11 12  | 
    
      # File 'lib/appwrite/models/build.rb', line 10 def stderr @stderr end  | 
  
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
      9 10 11  | 
    
      # File 'lib/appwrite/models/build.rb', line 9 def stdout @stdout end  | 
  
Class Method Details
.from(map:) ⇒ Object
      38 39 40 41 42 43 44 45 46 47 48 49 50  | 
    
      # File 'lib/appwrite/models/build.rb', line 38 def self.from(map:) Build.new( id: map["$id"], deployment_id: map["deploymentId"], status: map["status"], stdout: map["stdout"], stderr: map["stderr"], start_time: map["startTime"], end_time: map["endTime"], duration: map["duration"], size: map["size"] ) end  | 
  
Instance Method Details
#to_map ⇒ Object
      52 53 54 55 56 57 58 59 60 61 62 63 64  | 
    
      # File 'lib/appwrite/models/build.rb', line 52 def to_map { "$id": @id, "deploymentId": @deployment_id, "status": @status, "stdout": @stdout, "stderr": @stderr, "startTime": @start_time, "endTime": @end_time, "duration": @duration, "size": @size } end  |