class AsposeBarcodeCloud::Margins

Attributes

bottom[RW]
left[RW]
right[RW]
top[RW]

Public Class Methods

attribute_map() click to toggle source

attribute mapping from ruby-style variable name to JSON key

# File lib/aspose_barcode_cloud/models/margins.rb, line 6
def self.attribute_map
  {
    
    #
    :'left' => :'Left',
    
    #
    :'right' => :'Right',
    
    #
    :'top' => :'Top',
    
    #
    :'bottom' => :'Bottom'
    
  }
end
new(attributes = {}) click to toggle source
# File lib/aspose_barcode_cloud/models/margins.rb, line 35
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
swagger_types() click to toggle source

attribute type

# File lib/aspose_barcode_cloud/models/margins.rb, line 25
def self.swagger_types
  {
    :'left' => :'Float',
    :'right' => :'Float',
    :'top' => :'Float',
    :'bottom' => :'Float'
    
  }
end