Sha256: 029db4c0118c001b8ff14483f8779d584235fd9d20dd9a145650a224f92704da

Contents?: true

Size: 1.38 KB

Versions: 3

Compression:

Stored size: 1.38 KB

Contents

module AsposeEmailCloud
  # 
  class EmailDocument < BaseObject
    attr_accessor :links, :document_properties, :data, :format
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # 
        :'links' => :'Links',
        
        # 
        :'document_properties' => :'DocumentProperties',
        
        # 
        :'data' => :'Data',
        
        # 
        :'format' => :'Format'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'links' => :'Array<Link>',
        :'document_properties' => :'EmailProperties',
        :'data' => :'Stream',
        :'format' => :'String'
        
      }
    end

    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[:'DocumentProperties']
        self.document_properties = attributes[:'DocumentProperties']
      end
      
      if attributes[:'Data']
        self.data = attributes[:'Data']
      end
      
      if attributes[:'Format']
        self.format = attributes[:'Format']
      end
      
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aspose_email_cloud-1.0.2 lib/aspose_email_cloud/models/email_document.rb
aspose_email_cloud-1.0.1 lib/aspose_email_cloud/models/email_document.rb
aspose_email_cloud-1.0.0 lib/aspose_email_cloud/models/email_document.rb