Sha256: 8c42dfbb7e86660da24567f678ce0bf9e404418540f833e9a64a409dc111a033

Contents?: true

Size: 1.48 KB

Versions: 4

Compression:

Stored size: 1.48 KB

Contents

module AsposeWordsCloud
  # 
  class DocumentStatData < BaseObject
    attr_accessor :word_count, :paragraph_count, :page_count, :page_stat_data
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # 
        :'word_count' => :'WordCount',
        
        # 
        :'paragraph_count' => :'ParagraphCount',
        
        # 
        :'page_count' => :'PageCount',
        
        # 
        :'page_stat_data' => :'PageStatData'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'word_count' => :'Integer',
        :'paragraph_count' => :'Integer',
        :'page_count' => :'Integer',
        :'page_stat_data' => :'Array<PageStatData>'
        
      }
    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[:'WordCount']
        self.word_count = attributes[:'WordCount']
      end
      
      if attributes[:'ParagraphCount']
        self.paragraph_count = attributes[:'ParagraphCount']
      end
      
      if attributes[:'PageCount']
        self.page_count = attributes[:'PageCount']
      end
      
      if attributes[:'PageStatData']
        if (value = attributes[:'PageStatData']).is_a?(Array)
          self.page_stat_data = value
        end
      end
      
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aspose_words_cloud-1.0.3 lib/aspose_words_cloud/models/document_stat_data.rb
aspose_words_cloud-1.0.2 lib/aspose_words_cloud/models/document_stat_data.rb
aspose_words_cloud-1.0.1 lib/aspose_words_cloud/models/document_stat_data.rb
aspose_words_cloud-1.0.0 lib/aspose_words_cloud/models/document_stat_data.rb