Class: GoogleSslCert::Global
- Inherits:
-
Object
- Object
- GoogleSslCert::Global
- Defined in:
- lib/google_ssl_cert/global.rb
Instance Method Summary collapse
- #global? ⇒ Boolean
-
#initialize(options = {}) ⇒ Global
constructor
A new instance of Global.
Constructor Details
#initialize(options = {}) ⇒ Global
Returns a new instance of Global.
3 4 5 |
# File 'lib/google_ssl_cert/global.rb', line 3 def initialize(={}) @options = end |
Instance Method Details
#global? ⇒ Boolean
7 8 9 10 |
# File 'lib/google_ssl_cert/global.rb', line 7 def global? default_global = !%w[0 false].include?(ENV['GSC_GLOBAL']) # nil will default to true @options[:global].nil? ? default_global : @options[:global] end |