class AsposeTasksCloud::TaskDocument

Attributes

document_properties[RW]
file_format[RW]
file_name[RW]

Public Class Methods

attribute_map() click to toggle source

attribute mapping from ruby-style variable name to JSON key

# File lib/aspose_tasks_cloud/models/task_document.rb, line 6
def self.attribute_map
  {
    
    #
    :'links' => :'Links',
    
    #
    :'file_name' => :'FileName',
    
    #
    :'file_format' => :'FileFormat',
    
    #
    :'document_properties' => :'DocumentProperties'
    
  }
end
new(attributes = {}) click to toggle source
# File lib/aspose_tasks_cloud/models/task_document.rb, line 35
def initialize(attributes = {})
  return if !attributes.is_a?(Hash) || attributes.empty?

  # convert string to symbol for hash key
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

  
  if attributes[:'Links']
    if (value = attributes[:'Links']).is_a?(Array)
      self.links = value
    end
  end
  
  if attributes[:'FileName']
    self.file_name = attributes[:'FileName']
  end
  
  if attributes[:'FileFormat']
    self.file_format = attributes[:'FileFormat']
  end
  
  if attributes[:'DocumentProperties']
    self.document_properties = attributes[:'DocumentProperties']
  end
  
end
swagger_types() click to toggle source

attribute type

# File lib/aspose_tasks_cloud/models/task_document.rb, line 25
def self.swagger_types
  {
    :'links' => :'Array<Link>',
    :'file_name' => :'String',
    :'file_format' => :'Integer',
    :'document_properties' => :'DocumentProperties'
    
  }
end