lib/learnosity/sdk/request/init.rb
# XXX: Needs to be public for unit tests
Needs to be public for unit tests
Needs to be public for unit tests
def generate_signature
          signature_array = []
          @@valid_security_keys.each do |k|
            if @security_packet.include? k
              signature_array.<< @security_packet[k]
            end
          end
          signature_array << @secret
          if @sign_request_data and ! @request_string.nil?
            signature_array << @request_string
          end
          unless @action.nil?
            signature_array << @action
          end
          hash_signature(signature_array)
        end
def generate_signature signature_array = [ ] @@valid_security_keys . each do | k | if @security_packet . include? k signature_array . << @security_packet [ k ] end end signature_array << @secret if @sign_request_data and ! @request_string . nil? signature_array << @request_string end unless @action . nil? signature_array << @action end hash_signature ( signature_array ) end
XXX: Needs to be public for unit tests
XXX : Needs to be public for unit tests