class AsposeBarcodeCloud::BarcodeBuilder
Attributes
auto_size[RW]
back_color[RW]
bar_height[RW]
border_color[RW]
border_visible[RW]
code_location[RW]
code_text_color[RW]
dimension_x[RW]
dimension_y[RW]
enable_checksum[RW]
fore_color[RW]
graphics_unit[RW]
image_height[RW]
image_quality[RW]
image_width[RW]
margins[RW]
resolution[RW]
rotation_angle[RW]
text[RW]
type_of_barcode[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/barcode_builder.rb, line 6 def self.attribute_map { # :'type_of_barcode' => :'TypeOfBarcode', # :'text' => :'Text', # :'resolution' => :'Resolution', # :'dimension_x' => :'DimensionX', # :'dimension_y' => :'DimensionY', # :'code_location' => :'CodeLocation', # :'graphics_unit' => :'GraphicsUnit', # :'auto_size' => :'AutoSize', # :'bar_height' => :'BarHeight', # :'image_height' => :'ImageHeight', # :'image_width' => :'ImageWidth', # :'image_quality' => :'ImageQuality', # :'rotation_angle' => :'RotationAngle', # :'margins' => :'Margins', # :'back_color' => :'BackColor', # :'fore_color' => :'ForeColor', # :'code_text_color' => :'CodeTextColor', # :'border_color' => :'BorderColor', # :'border_visible' => :'BorderVisible', # :'enable_checksum' => :'EnableChecksum' } end
new(attributes = {})
click to toggle source
# File lib/aspose_barcode_cloud/models/barcode_builder.rb, line 99 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[:'TypeOfBarcode'] self.type_of_barcode = attributes[:'TypeOfBarcode'] end if attributes[:'Text'] self.text = attributes[:'Text'] end if attributes[:'Resolution'] self.resolution = attributes[:'Resolution'] end if attributes[:'DimensionX'] self.dimension_x = attributes[:'DimensionX'] end if attributes[:'DimensionY'] self.dimension_y = attributes[:'DimensionY'] end if attributes[:'CodeLocation'] self.code_location = attributes[:'CodeLocation'] end if attributes[:'GraphicsUnit'] self.graphics_unit = attributes[:'GraphicsUnit'] end if attributes[:'AutoSize'] self.auto_size = attributes[:'AutoSize'] end if attributes[:'BarHeight'] self.bar_height = attributes[:'BarHeight'] end if attributes[:'ImageHeight'] self.image_height = attributes[:'ImageHeight'] end if attributes[:'ImageWidth'] self.image_width = attributes[:'ImageWidth'] end if attributes[:'ImageQuality'] self.image_quality = attributes[:'ImageQuality'] end if attributes[:'RotationAngle'] self.rotation_angle = attributes[:'RotationAngle'] end if attributes[:'Margins'] self.margins = attributes[:'Margins'] end if attributes[:'BackColor'] self.back_color = attributes[:'BackColor'] end if attributes[:'ForeColor'] self.fore_color = attributes[:'ForeColor'] end if attributes[:'CodeTextColor'] self.code_text_color = attributes[:'CodeTextColor'] end if attributes[:'BorderColor'] self.border_color = attributes[:'BorderColor'] end if attributes[:'BorderVisible'] self.border_visible = attributes[:'BorderVisible'] end if attributes[:'EnableChecksum'] self.enable_checksum = attributes[:'EnableChecksum'] end end
swagger_types()
click to toggle source
attribute type
# File lib/aspose_barcode_cloud/models/barcode_builder.rb, line 73 def self.swagger_types { :'type_of_barcode' => :'String', :'text' => :'String', :'resolution' => :'Resolution', :'dimension_x' => :'Float', :'dimension_y' => :'Float', :'code_location' => :'String', :'graphics_unit' => :'String', :'auto_size' => :'BOOLEAN', :'bar_height' => :'Float', :'image_height' => :'Float', :'image_width' => :'Float', :'image_quality' => :'String', :'rotation_angle' => :'Float', :'margins' => :'Margins', :'back_color' => :'String', :'fore_color' => :'String', :'code_text_color' => :'String', :'border_color' => :'String', :'border_visible' => :'BOOLEAN', :'enable_checksum' => :'String' } end