module Knowtify::Helper
Constants
- AUTHENTICATION_ERROR_MESSAGE
Attributes
errors[RW]
response[RW]
Public Instance Methods
add_authenication_error()
click to toggle source
# File lib/knowtify/helper.rb, line 18 def add_authenication_error Knowtify.logger.error AUTHENTICATION_ERROR_MESSAGE if Knowtify.logger @errors ||= [] @errors << AUTHENTICATION_ERROR_MESSAGE end
blank_string?(str)
click to toggle source
# File lib/knowtify/helper.rb, line 24 def blank_string?(str) str =~ /^\s*$/ end
client()
click to toggle source
# File lib/knowtify/helper.rb, line 9 def client @client ||= Knowtify::Client.new end
config()
click to toggle source
# File lib/knowtify/helper.rb, line 28 def config Knowtify.config end
parsed_response()
click to toggle source
# File lib/knowtify/helper.rb, line 13 def parsed_response @parsed_response ||= JSON.parse(response.body) if response @parsed_response end