Class: Vonage::Numbers::Response

Inherits:
Response
  • Object
show all
Defined in:
lib/vonage/numbers/response.rb

Overview

typed: true frozen_string_literal: true

Instance Attribute Summary

Attributes inherited from Response

#entity, #http_response

Instance Method Summary collapse

Methods inherited from Response

#initialize, #method_missing, #respond_to_missing?

Constructor Details

This class inherits a constructor from Vonage::Response

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Vonage::Response

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/vonage/numbers/response.rb', line 5

def success?
  T.unsafe(self).error_code == '200'
end