Sha256: d6e34a1ec3f64f94a579204d1e98994b82c7ca8c0cef97281dc0affd97d418e5
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
# ReportingCloud Ruby Wrapper # # Official wrapper (authored by Text Control GmbH, publisher of ReportingCloud) to access # ReportingCloud in Ruby. # # Go to http://www.reporting.cloud to learn more about ReportingCloud # Go to https://github.com/TextControl/txtextcontrol-reportingcloud-ruby for the # canonical source repository. # # License: https://raw.githubusercontent.com/TextControl/txtextcontrol-reportingcloud-ruby/master/LICENSE.md # # Copyright: © 2017 Text Control GmbH module TXTextControl module ReportingCloud # Internal method parameter validator class. # @author Thorsten Kummerow (@thomerow) class TemplateDataValidator # Checks if a given value is a String, is not nil and not empty. # @param template_data [String] The string to validate. # @return [Boolean] def self.validate(template_data) raise ArgumentError, "Template data must be a Base64 encoded string." if !template_data.kind_of? String raise ArgumentError, "No template data given." if template_data.to_s.empty? end end end end
Version data entries
2 entries across 2 versions & 1 rubygems