lib/classmate/user.rb
def from_classmate_params(config, params)
        params = decrypt(config, params) if params.is_a?(String)

        return unless params && params['logged_user_id'] && signature_valid?(config, params)

        new(params)
      end
# Creates an instance of Classmate::User using application config and request parameters
Creates an instance of Classmate::User using application config and request parameters
Creates an instance of Classmate :: User using application config and request parameters
def from_classmate_params(config, params)
        params = decrypt(config, params) if params.is_a?(String)
        return unless params && params['logged_user_id'] && signature_valid?(config, params)
        new(params)
      end
def from_classmate_params ( config , params ) params = decrypt ( config , params ) if params . is_a? ( String ) return unless params && params [ 'logged_user_id' ] && signature_valid? ( config , params ) new ( params ) end
Creates an instance of Classmate::User using application config and request parameters
Creates an instance of Classmate :: User using application config and request parameters
config
params