Class: AsposeBarcodeCloud::BarcodeBuilder

Inherits:
BaseObject
  • Object
show all
Defined in:
lib/aspose_barcode_cloud/models/barcode_builder.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s

Constructor Details

#initialize(attributes = {}) ⇒ BarcodeBuilder

Returns a new instance of BarcodeBuilder.



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# 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

Instance Attribute Details

#auto_sizeObject

Returns the value of attribute auto_size.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def auto_size
  @auto_size
end

#back_colorObject

Returns the value of attribute back_color.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def back_color
  @back_color
end

#bar_heightObject

Returns the value of attribute bar_height.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def bar_height
  @bar_height
end

#border_colorObject

Returns the value of attribute border_color.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def border_color
  @border_color
end

#border_visibleObject

Returns the value of attribute border_visible.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def border_visible
  @border_visible
end

#code_locationObject

Returns the value of attribute code_location.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def code_location
  @code_location
end

#code_text_colorObject

Returns the value of attribute code_text_color.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def code_text_color
  @code_text_color
end

#dimension_xObject

Returns the value of attribute dimension_x.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def dimension_x
  @dimension_x
end

#dimension_yObject

Returns the value of attribute dimension_y.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def dimension_y
  @dimension_y
end

#enable_checksumObject

Returns the value of attribute enable_checksum.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def enable_checksum
  @enable_checksum
end

#fore_colorObject

Returns the value of attribute fore_color.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def fore_color
  @fore_color
end

#graphics_unitObject

Returns the value of attribute graphics_unit.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def graphics_unit
  @graphics_unit
end

#image_heightObject

Returns the value of attribute image_height.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def image_height
  @image_height
end

#image_qualityObject

Returns the value of attribute image_quality.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def image_quality
  @image_quality
end

#image_widthObject

Returns the value of attribute image_width.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def image_width
  @image_width
end

#marginsObject

Returns the value of attribute margins.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def margins
  @margins
end

#resolutionObject

Returns the value of attribute resolution.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def resolution
  @resolution
end

#rotation_angleObject

Returns the value of attribute rotation_angle.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def rotation_angle
  @rotation_angle
end

#textObject

Returns the value of attribute text.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def text
  @text
end

#type_of_barcodeObject

Returns the value of attribute type_of_barcode.



4
5
6
# File 'lib/aspose_barcode_cloud/models/barcode_builder.rb', line 4

def type_of_barcode
  @type_of_barcode
end

Class Method Details

.attribute_mapObject

attribute mapping from ruby-style variable name to JSON key



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# 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

.swagger_typesObject

attribute type



73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# 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