Method: CyberSource::ErrorLinks#initialize
- Defined in:
- lib/cyberSource_client/models/error_links.rb
#initialize(attributes = {}) ⇒ ErrorLinks
Initializes the object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/cyberSource_client/models/error_links.rb', line 43 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?(:'self') self._self = attributes[:'self'] end if attributes.has_key?(:'documentation') if (value = attributes[:'documentation']).is_a?(Array) self.documentation = value end end if attributes.has_key?(:'next') if (value = attributes[:'next']).is_a?(Array) self._next = value end end end |