class
Build::Build
- Build::Build
- Reference
- Object
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
build-client/models/build.crConstructors
-
.new(id : String, app : GetPipelineDiff200ResponseSource, stack : String, state : String, created_at : Time, updated_at : Time, user : BuildUser | Nil, source_blob : BuildSourceBlob | Nil, buildpacks : Array(BuildBuildpacksInner) | Nil, output_stream_url : String | Nil, slug : BuildSlug | Nil)
Initializes the object @param [Hash] attributes Model attributes in the form of hash
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
Class Method Summary
-
.build_from_hash(attributes)
Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself
Instance Method Summary
-
#==(other)
Checks equality by comparing each attribute.
-
#_deserialize(type, value)
Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data
-
#_to_hash(value)
Outputs non-array value in the form of hash For object, use to_hash.
- #app : GetPipelineDiff200ResponseSource
- #app=(app : GetPipelineDiff200ResponseSource)
-
#build_from_hash(attributes)
Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself
- #buildpacks : Array(BuildBuildpacksInner) | Nil
- #buildpacks=(buildpacks : Array(BuildBuildpacksInner) | Nil)
- #created_at : Time
- #created_at=(created_at : Time)
-
#eql?(other)
@see the
#==method @param [Object] Object to be compared -
#hash
Calculates hash code according to all attributes.
-
#id : String
Required properties
-
#id=(id : String)
Required properties
-
#list_invalid_properties
Show invalid properties with the reasons.
- #output_stream_url : String | Nil
- #output_stream_url=(output_stream_url : String | Nil)
- #slug : BuildSlug | Nil
- #slug=(slug : BuildSlug | Nil)
- #source_blob : BuildSourceBlob | Nil
- #source_blob=(source_blob : BuildSourceBlob | Nil)
- #stack : String
- #stack=(stack : String)
-
#state : String
Build state, reported verbatim rather than collapsed.
-
#state=(state : String)
Build state, reported verbatim rather than collapsed.
-
#state=(state : String)
Custom attribute writer method checking allowed values (enum).
-
#to_body
to_body is an alias to to_hash (backward compatibility) @return [Hash] Returns the object in the form of hash
-
#to_hash
Returns the object in the form of hash @return [Hash] Returns the object in the form of hash
-
#to_s
Returns the string representation of the object @return [String] String presentation of the object
- #updated_at : Time
- #updated_at=(updated_at : Time)
-
#user : BuildUser | Nil
Optional properties
-
#user=(user : BuildUser | Nil)
Optional properties
-
#valid?
Check to see if the all the properties in the model are valid @return true if the model is valid
Constructor Detail
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Class Method Detail
Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself
Instance Method Detail
Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash
Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Custom attribute writer method checking allowed values (enum). @param [Object] state Object to be assigned
to_body is an alias to to_hash (backward compatibility) @return [Hash] Returns the object in the form of hash
Returns the object in the form of hash @return [Hash] Returns the object in the form of hash
Returns the string representation of the object @return [String] String presentation of the object
Check to see if the all the properties in the model are valid @return true if the model is valid