Class: Vonage::NumberInsight
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::NumberInsight
- Defined in:
- lib/vonage/number_insight.rb
Instance Method Summary collapse
-
#advanced(params) ⇒ Response
Provides advanced number insight information about a number synchronously.
-
#advanced_async(params) ⇒ Response
Provides advanced number insight number information asynchronously using the URL specified in the callback parameter.
-
#basic(params) ⇒ Response
Provides basic number insight information about a number.
-
#standard(params) ⇒ Response
Provides standard number insight information about a number.
Instance Method Details
#advanced(params) ⇒ Response
Provides advanced number insight information about a number synchronously.
94 95 96 97 98 99 100 |
# File 'lib/vonage/number_insight.rb', line 94 def advanced(params) response = request('/ni/advanced/json', params: params) raise ServiceError.new(response: response), response[:status_message] unless response.status.zero? response end |
#advanced_async(params) ⇒ Response
Provides advanced number insight number information asynchronously using the URL specified in the callback parameter.
133 134 135 136 137 138 139 |
# File 'lib/vonage/number_insight.rb', line 133 def advanced_async(params) response = request('/ni/advanced/async/json', params: params) raise ServiceError.new(response: response), response[:status_message] unless response.status.zero? response end |
#basic(params) ⇒ Response
Provides basic number insight information about a number.
26 27 28 29 30 31 32 |
# File 'lib/vonage/number_insight.rb', line 26 def basic(params) response = request('/ni/basic/json', params: params) raise ServiceError.new(response: response), response[:status_message] unless response.status.zero? response end |
#standard(params) ⇒ Response
Provides standard number insight information about a number.
58 59 60 61 62 63 64 |
# File 'lib/vonage/number_insight.rb', line 58 def standard(params) response = request('/ni/standard/json', params: params) raise ServiceError.new(response: response), response[:status_message] unless response.status.zero? response end |