Class: Vonage::NumberInsight2

Inherits:
Namespace
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/vonage/number_insight_2.rb

Instance Method Summary collapse

Instance Method Details

#fraud_check(type:, phone:, insights:) ⇒ Object

Raises:

  • (ArgumentError)


30
31
32
33
34
# File 'lib/vonage/number_insight_2.rb', line 30

def fraud_check(type:, phone:, insights:)
  raise ArgumentError.new("`insights` must not be an empty") if insights.empty?

  request('/v2/ni', params: {type: type, phone: phone, insights: insights}, type: Post)
end