Method: TripletexRubyClient::Image#initialize
- Defined in:
- lib/tripletex_ruby_client/models/image.rb
#initialize(attributes = {}) ⇒ Image
Initializes the object
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 98 |
# File 'lib/tripletex_ruby_client/models/image.rb', line 73 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] end if attributes.has_key?(:'name') self.name = attributes[:'name'] end if attributes.has_key?(:'description') self.description = attributes[:'description'] end if attributes.has_key?(:'value') self.value = attributes[:'value'] end if attributes.has_key?(:'imageName') self.image_name = attributes[:'imageName'] end end |