Module: Vantiv::Environment

Defined in:
lib/vantiv/environment.rb

Constant Summary collapse

POSTCERTIFICATION =
:postcertification
PRECERTIFICATION =
:precertification
PRODUCTION =
:production

Class Method Summary collapse

Class Method Details

.postcertification?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/vantiv/environment.rb', line 7

def self.postcertification?
  Vantiv.environment == POSTCERTIFICATION
end

.precertification?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/vantiv/environment.rb', line 11

def self.precertification?
  Vantiv.environment == PRECERTIFICATION
end

.production?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/vantiv/environment.rb', line 15

def self.production?
  Vantiv.environment == PRODUCTION
end