class Nexmo::Response

Attributes

http_response[R]

Public Class Methods

new(entity=nil, http_response=nil) click to toggle source
# File lib/nexmo/response.rb, line 5
def initialize(entity=nil, http_response=nil)
  @entity = entity

  @http_response = http_response
end

Public Instance Methods

method_missing(name, *args) click to toggle source
Calls superclass method
# File lib/nexmo/response.rb, line 19
def method_missing(name, *args)
  return super if @entity.nil?

  @entity.public_send(name, *args)
end
respond_to_missing?(name, include_private = false) click to toggle source
Calls superclass method
# File lib/nexmo/response.rb, line 13
def respond_to_missing?(name, include_private = false)
  return super if @entity.nil?

  @entity.respond_to?(name)
end