Module: Cistern

Extended by:
WaitFor
Defined in:
lib/cistern.rb,
lib/cistern/mock.rb,
lib/cistern/timeout.rb,
lib/cistern/version.rb,
lib/cistern/wait_for.rb

Defined Under Namespace

Modules: Associations, Attributes, Client, Collection, Coverage, Data, Formatter, HashSupport, Model, Request, Singular, WaitFor Classes: Hash, Mock, Service, String

Constant Summary collapse

Error =
Class.new(StandardError)
Timeout =
Class.new(Error)
VERSION =
'2.7.1'

Class Method Summary collapse

Methods included from WaitFor

poll_interval, poll_interval=, timeout, timeout=, timeout_error, timeout_error=, wait_for, wait_for, wait_for!, wait_for!

Class Method Details

.deprecation(message, source = caller[1]) ⇒ Object



49
50
51
# File 'lib/cistern.rb', line 49

def self.deprecation(message, source = caller[1])
  STDERR.puts("#{message}. (#{source})") if deprecation_warnings?
end

.deprecation_warnings=(status) ⇒ Object



45
46
47
# File 'lib/cistern.rb', line 45

def self.deprecation_warnings=(status)
  @deprecation_warnings = status
end

.deprecation_warnings?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/cistern.rb', line 41

def self.deprecation_warnings?
  @deprecation_warnings.nil? ? true : !!@deprecation_warnings
end

.formatterObject



37
38
39
# File 'lib/cistern.rb', line 37

def self.formatter
  @formatter ||= Cistern::Formatter.default
end

.formatter=(formatter) ⇒ Object



33
34
35
# File 'lib/cistern.rb', line 33

def self.formatter=(formatter)
  @formatter = formatter
end