Method: MetatronClient::Asset#to_hash
- Defined in:
- lib/metatron_ruby_client/models/asset.rb
#to_hash ⇒ Hash
Returns the object in the form of hash
208 209 210 211 212 213 214 215 216 |
# File 'lib/metatron_ruby_client/models/asset.rb', line 208 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |