Class: Ogam::JobTitle

Inherits:
Object
  • Object
show all
Defined in:
lib/ogam/job_title.rb

Overview

Allows working with a list of approved job titles

Constant Summary collapse

CSV_URL =
"https://docs.google.com/spreadsheets/d/12nl5OBGSmOSsWilzWfflmAHO-8EyfCjVXYLeUDqjB60/export?format=csv&id=12nl5OBGSmOSsWilzWfflmAHO-8EyfCjVXYLeUDqjB60&gid=1604665254"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.job_titles(str) ⇒ Object



13
14
15
16
17
# File 'lib/ogam/job_title.rb', line 13

def self.job_titles(str)
  return [] if str.blank?

  str.split(" / ")
end

Instance Method Details

#allObject



19
20
21
# File 'lib/ogam/job_title.rb', line 19

def all
  @all ||= parse(download)
end