Sha256: 1c186757712c52c8e8c9a52861da2f6b838b3be8dab2e7c6ef3a0954da1d9fa5

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 KB

Contents

module AsposeImagingCloud
  # 
  class PsdProperties < BaseObject
    attr_accessor :bits_per_channel, :channels_count, :color_mode, :compression
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # 
        :'bits_per_channel' => :'BitsPerChannel',
        
        # 
        :'channels_count' => :'ChannelsCount',
        
        # 
        :'color_mode' => :'ColorMode',
        
        # 
        :'compression' => :'Compression'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'bits_per_channel' => :'Integer',
        :'channels_count' => :'Integer',
        :'color_mode' => :'String',
        :'compression' => :'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[:'BitsPerChannel']
        self.bits_per_channel = attributes[:'BitsPerChannel']
      end
      
      if attributes[:'ChannelsCount']
        self.channels_count = attributes[:'ChannelsCount']
      end
      
      if attributes[:'ColorMode']
        self.color_mode = attributes[:'ColorMode']
      end
      
      if attributes[:'Compression']
        self.compression = attributes[:'Compression']
      end
      
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aspose_imaging_cloud-1.0.0 lib/aspose_imaging_cloud/models/psd_properties.rb