Sha256: 22019770791bed7c5ce0d194a041879be23407eca266521eb89cd00d4c4d6644

Contents?: true

Size: 1.2 KB

Versions: 5

Compression:

Stored size: 1.2 KB

Contents

module AsposeBarcodeCloud
  # 
  class Margins < BaseObject
    attr_accessor :left, :right, :top, :bottom
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # 
        :'left' => :'Left',
        
        # 
        :'right' => :'Right',
        
        # 
        :'top' => :'Top',
        
        # 
        :'bottom' => :'Bottom'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'left' => :'Float',
        :'right' => :'Float',
        :'top' => :'Float',
        :'bottom' => :'Float'
        
      }
    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[:'Left']
        self.left = attributes[:'Left']
      end
      
      if attributes[:'Right']
        self.right = attributes[:'Right']
      end
      
      if attributes[:'Top']
        self.top = attributes[:'Top']
      end
      
      if attributes[:'Bottom']
        self.bottom = attributes[:'Bottom']
      end
      
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aspose_barcode_cloud-1.0.4 lib/aspose_barcode_cloud/models/margins.rb
aspose_barcode_cloud-1.0.3 lib/aspose_barcode_cloud/models/margins.rb
aspose_barcode_cloud-1.0.2 lib/aspose_barcode_cloud/models/margins.rb
aspose_barcode_cloud-1.0.1 lib/aspose_barcode_cloud/models/margins.rb
aspose_barcode_cloud-1.0.0 lib/aspose_barcode_cloud/models/margins.rb