Sha256: eee1fb5f9cbc3cd9fa17cff546ed2abacf82ee20d2db64a854d662f7946a136c
Contents?: true
Size: 1.17 KB
Versions: 4
Compression:
Stored size: 1.17 KB
Contents
module AsposeWordsCloud # class Rectangle < BaseObject attr_accessor :x, :y, :width, :height # attribute mapping from ruby-style variable name to JSON key def self.attribute_map { # :'x' => :'X', # :'y' => :'Y', # :'width' => :'Width', # :'height' => :'Height' } end # attribute type def self.swagger_types { :'x' => :'Integer', :'y' => :'Integer', :'width' => :'Integer', :'height' => :'Integer' } 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[:'X'] self.x = attributes[:'X'] end if attributes[:'Y'] self.y = attributes[:'Y'] end if attributes[:'Width'] self.width = attributes[:'Width'] end if attributes[:'Height'] self.height = attributes[:'Height'] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems