Class: Nexmo::Numbers::ListResponse

Inherits:
Response
  • Object
show all
Includes:
Enumerable
Defined in:
lib/nexmo/numbers/list_response.rb

Instance Attribute Summary

Attributes inherited from Response

#http_response

Instance Method Summary collapse

Methods inherited from Response

#initialize, #method_missing, #respond_to_missing?

Constructor Details

This class inherits a constructor from Nexmo::Response

Dynamic Method Handling

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

Instance Method Details

#eachObject


4
5
6
7
8
# File 'lib/nexmo/numbers/list_response.rb', line 4

def each
  return enum_for(:each) unless block_given?

  @entity.numbers.each { |item| yield item }
end