lib/intercom/user_resource.rb
# updates the internal state of this {UserResource} based on the response from the API
# @return [UserResource] self
updates the internal state of this {UserResource} based on the response from the API
updates the internal state of this { UserResource } based on the response from the API
def update_from_api_response(api_response)
      api_response.each do |key, value|
        setter_method = "#{key.to_s}="
        if self.respond_to?(setter_method)
          self.send(setter_method, value)
        else
          @attributes[key.to_s] = value
        end
      end
      self
    end
def update_from_api_response ( api_response ) api_response . each do | key , value | setter_method = "#{key.to_s}=" if self . respond_to? ( setter_method ) self . send ( setter_method , value ) else @attributes [ key . to_s ] = value end end self end
updates the internal state of this {UserResource} based on the response from the API
updates the internal state of this { UserResource } based on the response from the API
None
UserResource
api_response
<not_specific>