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.
93 94 95 96 97 98 99 |
# File 'lib/vonage/number_insight.rb', line 93 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.
132 133 134 135 136 137 138 |
# File 'lib/vonage/number_insight.rb', line 132 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.
25 26 27 28 29 30 31 |
# File 'lib/vonage/number_insight.rb', line 25 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.
57 58 59 60 61 62 63 |
# File 'lib/vonage/number_insight.rb', line 57 def standard(params) response = request('/ni/standard/json', params: params) raise ServiceError.new(response: response), response[:status_message] unless response.status.zero? response end |