Module: Fog::Mock

Defined in:
lib/fog.rb

Class Method Summary collapse

Class Method Details

.delayObject



47
48
49
# File 'lib/fog.rb', line 47

def self.delay
  @delay
end

.delay=(new_delay) ⇒ Object

Raises:

  • (ArgumentError)


51
52
53
54
# File 'lib/fog.rb', line 51

def self.delay=(new_delay)
  raise ArgumentError, "delay must be non-negative" unless new_delay >= 0
  @delay = new_delay
end

.not_implementedObject



56
57
58
# File 'lib/fog.rb', line 56

def self.not_implemented
  raise Fog::Errors::MockNotImplemented.new("Contributions welcome!")
end