app/models/my_badges/student_info.rb
# Set isLawStudent to true iff user's only college is School of Law
Set isLawStudent to true iff user's only college is School of Law
Set isLawStudent to true iff user ' s only college is School of Law
def law_student
      college_feed = {}
      MyAcademics::CollegeAndLevel.new(@uid).merge(college_feed)
      if !(college_feed.empty? || college_feed[:empty])
        colleges = college_feed[:collegeAndLevel][:colleges]
        if !colleges.nil?
          return colleges[0][:college].eql? "School of Law"
        end
      end
      return false
    end
def law_student college_feed = { } MyAcademics :: CollegeAndLevel . new ( @uid ) . merge ( college_feed ) if ! ( college_feed . empty? || college_feed [ :empty ] ) colleges = college_feed [ :collegeAndLevel ] [ :colleges ] if ! colleges . nil? return colleges [ 0 ] [ :college ] . eql? "School of Law" end end return false end
Set isLawStudent to true iff user's only college is School of Law
Set isLawStudent to true iff user ' s only college is School of Law