module Traitify::Client::Major
Public Instance Methods
major(id)
click to toggle source
# File lib/traitify/client/majors.rb, line 17 def major(id) response = get("/majors/#{id}") Hashie::Mash.new(response) end
Also aliased as: find_major
majors(options = {})
click to toggle source
Valid options are
-
page
-
majors_per_page
-
experience_levels
# File lib/traitify/client/majors.rb, line 8 def majors(options = {}) response = options.empty? ? get("/majors") : get("/majors?" + options.collect{ |k,v| "#{k}=#{v}" }.join("&")) response.collect { |major| Hashie::Mash.new(major) } end
Also aliased as: find_majors