Class: MetaSms::Utility

Inherits:
Object
  • Object
show all
Defined in:
lib/meta_sms/utility.rb

Overview

This is a utility class for meta_sms. This encapsulates some common class methods as

#logging?
This method will be used to check whether logging of sms is required or not.

Author:

  • Shobhit Dixit

Class Method Summary collapse

Class Method Details

.logging?(logging = nil) ⇒ Boolean

Returns true if logging is true in config initializer or in @options, else false.

Returns:

  • (Boolean)

    true if logging is true in config initializer or in @options, else false

Author:

  • Shobhit Dixit



12
13
14
# File 'lib/meta_sms/utility.rb', line 12

def self.logging?(logging=nil)
  logging == true || MetaSms.config.logging == true
end