Class: Cb::Utils::NilResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/cb/utils/nil_response.rb

Instance Method Summary collapse

Constructor Details

#initializeNilResponse

Returns a new instance of NilResponse.



17
# File 'lib/cb/utils/nil_response.rb', line 17

def initialize ;end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &block) ⇒ Object

We used to monkey patch Nil to respond to all methods on the api client



24
25
26
# File 'lib/cb/utils/nil_response.rb', line 24

def method_missing(m, *args, &block)
  return nil
end

Instance Method Details

#nil?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/cb/utils/nil_response.rb', line 19

def nil?
  true
end