Class: GridRest::DummyResponse

Inherits:
Hash
  • Object
show all
Defined in:
lib/grid_rest.rb

Overview

This class can be used in testing environments. It will always be valid and behaves a bit like a normal response when this is a json hash.

Instance Method Summary collapse

Instance Method Details

#codeObject



352
353
354
# File 'lib/grid_rest.rb', line 352

def code
  200
end

#valid?Boolean

Returns:

  • (Boolean)


355
356
357
# File 'lib/grid_rest.rb', line 355

def valid?
  true
end