cohortservice 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e4caf15794f56819053e977fc546de5ea6ad8f4
4
- data.tar.gz: 4e0af9f97427d3e2633200e6d2c2da5982da8d72
3
+ metadata.gz: 80181b832ca612b278191024ce03e0dd49fd5532
4
+ data.tar.gz: 0c30a9360d11aafc1a4529a2051f7edc5214c280
5
5
  SHA512:
6
- metadata.gz: 5d56646af35f9a5b8f34f70805b92f43e501a01221cabaeda1709abe69a46f67f584ab4bd1a7f83c45ffd2a2251af820de08daa01ba4627d02ee19a0259a1002
7
- data.tar.gz: f407459fedb5717d6152e9b9e60328d5ed018bc08d32459168c5f445f5a63e24e4354ff465cac151b75b21cbda337ff95f38cde0a521d4edfa86a6e1a67c8a64
6
+ metadata.gz: 08709a672593bbf7827441e5d607801b685255d09eaba0467277174745ba492c07703dab05dbd6b12c7ac050f8fae66fc127f57f5a26d5402ad364d6fb8a6314
7
+ data.tar.gz: 51b0dac52f69f8a161f64d511f3f8ff1f08f6ca86dc9171e3af5c61f79700de102c90064627826629ca393fca93e2074a1c06f36435fe044147a0f9bf2a6d2e8
Binary file
data/lib/cohortservice.rb CHANGED
@@ -34,14 +34,16 @@ module Cohortservice
34
34
  date = Date.parse("01-#{cohort[1]}-20#{cohort[0]}")
35
35
  end_date = date+183
36
36
 
37
- education = define_education cohort[2]
37
+ education_type = define_education_type cohort[2]
38
+ program = define_program cohort[2]
38
39
  campus = define_campus cohort[3]
39
40
 
40
41
  cohort_info[:start_date_full] = date
41
42
  cohort_info[:start_date] = "#{date.mon} #{date.year}"
42
43
  cohort_info[:end_date_full] = end_date
43
44
  cohort_info[:end_date] = "#{end_date.mon} #{end_date.year}"
44
- cohort_info[:education] = education
45
+ cohort_info[:education_type] = education_type
46
+ cohort_info[:program] = program
45
47
  cohort_info[:campus] = campus
46
48
  cohort_info[:campus_info] = @data[:campuses][campus.to_sym]
47
49
 
@@ -50,14 +52,26 @@ module Cohortservice
50
52
 
51
53
  private
52
54
 
53
- def self.define_education(education_code)
55
+ def self.define_program(education_code)
54
56
  case education_code
55
57
  when 'DS'
56
- education = 'Data Science'
58
+ program = 'Data Science Immersive'
57
59
  when 'FS', 'WD'
58
- education = 'Web Development'
60
+ program = 'Web Development Immersive'
59
61
  when 'GU'
60
- education = 'Galvanize University'
62
+ program = 'Galvanize University'
63
+ else
64
+ program = ''
65
+ end
66
+ program
67
+ end
68
+
69
+ def self.define_education_type(education_code)
70
+ case education_code
71
+ when 'DS', 'GU'
72
+ education = 'Data Science'
73
+ when 'FS', 'WD'
74
+ education = 'Full Stack'
61
75
  else
62
76
  education = ''
63
77
  end
@@ -1,3 +1,3 @@
1
1
  module Cohortservice
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cohortservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derik Linch
@@ -73,6 +73,7 @@ files:
73
73
  - cohortservice-0.0.3.gem
74
74
  - cohortservice-0.0.4.gem
75
75
  - cohortservice-0.0.5.gem
76
+ - cohortservice-0.0.6.gem
76
77
  - cohortservice.gemspec
77
78
  - lib/cohortservice.rb
78
79
  - lib/cohortservice/version.rb