Sha256: 216e14120facb6fd212730c809ffb06099d742287d8a85d84cd36349265a025d

Contents?: true

Size: 258 Bytes

Versions: 2

Compression:

Stored size: 258 Bytes

Contents

module Moceansdk

  class Utils
    def self.nil_or_empty?(str)
      str.nil? || str.empty?
    end

    def self.convert_to_symbol_hash(str_hash)
      str_hash.each_with_object({}) do |(k, v), memo|
        memo[k.to_sym] = v
      end
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
moceansdk-1.1.1 lib/moceansdk/utils.rb
moceansdk-1.1.0 lib/moceansdk/utils.rb