Sha256: 3c256a7d91f0d1f853caec09a6d9d53aaa6b79f5815226c8ccbf6dfb54af4334

Contents?: true

Size: 1.8 KB

Versions: 4

Compression:

Stored size: 1.8 KB

Contents

module AsposeSlidesCloud
  # 
  class DocumentProperty < BaseObject
    attr_accessor :name, :value, :built_in, :self_uri, :alternate_links, :links
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # 
        :'name' => :'Name',
        
        # 
        :'value' => :'Value',
        
        # 
        :'built_in' => :'BuiltIn',
        
        # 
        :'self_uri' => :'SelfUri',
        
        # 
        :'alternate_links' => :'AlternateLinks',
        
        # 
        :'links' => :'Links'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'name' => :'String',
        :'value' => :'String',
        :'built_in' => :'BOOLEAN',
        :'self_uri' => :'ResourceUri',
        :'alternate_links' => :'Array<ResourceUri>',
        :'links' => :'Array<ResourceUri>'
        
      }
    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[:'Name']
        self.name = attributes[:'Name']
      end
      
      if attributes[:'Value']
        self.value = attributes[:'Value']
      end
      
      if attributes[:'BuiltIn']
        self.built_in = attributes[:'BuiltIn']
      end
      
      if attributes[:'SelfUri']
        self.self_uri = attributes[:'SelfUri']
      end
      
      if attributes[:'AlternateLinks']
        if (value = attributes[:'AlternateLinks']).is_a?(Array)
          self.alternate_links = value
        end
      end
      
      if attributes[:'Links']
        if (value = attributes[:'Links']).is_a?(Array)
          self.links = value
        end
      end
      
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aspose_slides_cloud-1.0.3 lib/aspose_slides_cloud/models/document_property.rb
aspose_slides_cloud-1.0.2 lib/aspose_slides_cloud/models/document_property.rb
aspose_slides_cloud-1.0.1 lib/aspose_slides_cloud/models/document_property.rb
aspose_slides_cloud-1.0.0 lib/aspose_slides_cloud/models/document_property.rb