Class: Vonage::Voice::ListResponse

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

Overview

typed: true

Instance Attribute Summary

Attributes inherited from Response

#entity, #http_response

Instance Method Summary collapse

Methods inherited from Response

#initialize, #method_missing, #respond_to_missing?

Constructor Details

This class inherits a constructor from Vonage::Response

Dynamic Method Handling

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

Instance Method Details

#eachObject



6
7
8
9
10
# File 'lib/vonage/voice/list_response.rb', line 6

def each
  return enum_for(:each) unless block_given?

  @entity._embedded.calls.each { |item| yield item }
end