class AsposeSlidesCloud::Input
Represents input document for pipeline.
Attributes
Get or sets html data for generate new presentation.
Get or sets template document. If property is null new empty presentation will be created.
Get or sets data for template engine.
Public Class Methods
Attribute mapping from ruby-style variable name to JSON key.
# File lib/aspose_slides_cloud/models/input.rb, line 38 def self.attribute_map { :'template' => :'Template', :'html_data' => :'HtmlData', :'template_data' => :'TemplateData', } end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
# File lib/aspose_slides_cloud/models/input.rb, line 57 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'Template') self.template = attributes[:'Template'] end if attributes.has_key?(:'HtmlData') self.html_data = attributes[:'HtmlData'] end if attributes.has_key?(:'TemplateData') self.template_data = attributes[:'TemplateData'] end end
Attribute type mapping.
# File lib/aspose_slides_cloud/models/input.rb, line 47 def self.swagger_types { :'template' => :'InputFile', :'html_data' => :'InputFile', :'template_data' => :'InputFile', } end
Public Instance Methods
Checks equality by comparing each attribute. @param [Object] Object to be compared
# File lib/aspose_slides_cloud/models/input.rb, line 91 def ==(o) return true if self.equal?(o) self.class == o.class && template == o.template && html_data == o.html_data && template_data == o.template_data end
@see the ‘==` method @param [Object] Object to be compared
# File lib/aspose_slides_cloud/models/input.rb, line 101 def eql?(o) self == o end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
# File lib/aspose_slides_cloud/models/input.rb, line 107 def hash [template, html_data, template_data].hash end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
# File lib/aspose_slides_cloud/models/input.rb, line 78 def list_invalid_properties invalid_properties = Array.new invalid_properties end
Check to see if the all the properties in the model are valid @return true if the model is valid
# File lib/aspose_slides_cloud/models/input.rb, line 85 def valid? true end