class AsposeBarcodeCloud::BarcodeResponse
Attributes
barcode_type[RW]
barcode_value[RW]
checksum[RW]
region[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_response.rb, line 6 def self.attribute_map { # :'barcode_value' => :'BarcodeValue', # :'barcode_type' => :'BarcodeType', # :'region' => :'Region', # :'checksum' => :'Checksum' } end
new(attributes = {})
click to toggle source
# File lib/aspose_barcode_cloud/models/barcode_response.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[:'BarcodeValue'] self.barcode_value = attributes[:'BarcodeValue'] end if attributes[:'BarcodeType'] self.barcode_type = attributes[:'BarcodeType'] end if attributes[:'Region'] if (value = attributes[:'Region']).is_a?(Array) self.region = value end end if attributes[:'Checksum'] self.checksum = attributes[:'Checksum'] end end
swagger_types()
click to toggle source
attribute type
# File lib/aspose_barcode_cloud/models/barcode_response.rb, line 25 def self.swagger_types { :'barcode_value' => :'String', :'barcode_type' => :'String', :'region' => :'Array<String>', :'checksum' => :'String' } end