Class: ApplicantTracking::Resource

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/applicant_tracking_api/resources/resource.rb

Direct Known Subclasses

Applications, Jobs, Jobs::Applications

Class Method Summary collapse

Class Method Details

.element_nameObject



5
6
7
# File 'lib/applicant_tracking_api/resources/resource.rb', line 5

def self.element_name
	name.split(/::/).last.underscore
end

.method_missing(method, *args, &block) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/applicant_tracking_api/resources/resource.rb', line 9

def self.method_missing(method, *args, &block)
	if(["active", "hidden", "archived", "rated","unrated"].include?(method.to_s))
		self.find(:all, :from => method.to_sym)
	else
		super
	end
end