Method: TripletexRubyClient::Link#initialize
- Defined in:
- lib/tripletex_ruby_client/models/link.rb
#initialize(attributes = {}) ⇒ Link
Initializes the object
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/tripletex_ruby_client/models/link.rb', line 65 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?(:'rel') self.rel = attributes[:'rel'] end if attributes.has_key?(:'type') self.type = attributes[:'type'] end if attributes.has_key?(:'href') self.href = attributes[:'href'] end end |