lib/intercom/user_resource.rb in intercom-0.1.14 vs lib/intercom/user_resource.rb in intercom-0.1.15

- old
+ new

@@ -41,10 +41,10 @@ # updates the internal state of this {UserResource} based on the response from the API # @return [UserResource] self def update_from_api_response(api_response) api_response.each do |key, value| setter_method = "#{key.to_s}=" - if self.respond_to?(setter_method) + if self.respond_to?(setter_method, true) self.send(setter_method, value) else @attributes[key.to_s] = value end end