plivo/plivo-ruby

undefined local variable or method number_list (in Resources/Numbers.rb)

Closed this issue · 1 comments

While running this code:

client = Plivo::RestClient.new(@auth_id, @auth_token)
client.phone_numbers.each('US') do |obj|
  puts obj.number
end

I get the following error:

undefined local variable or method number_list

which can be tracked down to the line below (seems the variable should be called phone_number_list instead):

return unless number_list.length == 20

@binarygeek This issue has been fixed in the new release