stbaldricks 10.6.0.alpha.1 → 10.8.1.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stbaldricks/configuration.rb +1 -1
  3. data/lib/stbaldricks/endpoints/photo.rb +1 -3
  4. data/lib/stbaldricks/entities/batch.rb +2 -2
  5. data/lib/stbaldricks/entities/challenge.rb +4 -4
  6. data/lib/stbaldricks/entities/challenger.rb +2 -2
  7. data/lib/stbaldricks/entities/challenger/model_type.rb +2 -0
  8. data/lib/stbaldricks/entities/concerns/entity_response_concern.rb +2 -4
  9. data/lib/stbaldricks/entities/contact.rb +1 -1
  10. data/lib/stbaldricks/entities/deduplicator_match.rb +5 -5
  11. data/lib/stbaldricks/entities/donation.rb +3 -3
  12. data/lib/stbaldricks/entities/donation/donor_type.rb +2 -0
  13. data/lib/stbaldricks/entities/donation/how_created.rb +2 -0
  14. data/lib/stbaldricks/entities/donation/payment_gateway.rb +2 -0
  15. data/lib/stbaldricks/entities/donation/payment_type.rb +2 -0
  16. data/lib/stbaldricks/entities/donation/promo_code.rb +2 -0
  17. data/lib/stbaldricks/entities/donation/recipient_type.rb +2 -0
  18. data/lib/stbaldricks/entities/donation/special_donation_type.rb +2 -0
  19. data/lib/stbaldricks/entities/donation/status.rb +2 -0
  20. data/lib/stbaldricks/entities/donation/submitter_type.rb +2 -0
  21. data/lib/stbaldricks/entities/event.rb +10 -10
  22. data/lib/stbaldricks/entities/event/fund_relationship_type.rb +2 -0
  23. data/lib/stbaldricks/entities/event/how_created.rb +2 -0
  24. data/lib/stbaldricks/entities/event/promo_code.rb +2 -0
  25. data/lib/stbaldricks/entities/event/status.rb +2 -0
  26. data/lib/stbaldricks/entities/event/sub_type.rb +2 -0
  27. data/lib/stbaldricks/entities/event/type.rb +2 -0
  28. data/lib/stbaldricks/entities/event_application/model_type.rb +2 -0
  29. data/lib/stbaldricks/entities/event_application/status.rb +2 -0
  30. data/lib/stbaldricks/entities/fundraiser.rb +20 -20
  31. data/lib/stbaldricks/entities/international_partner.rb +2 -2
  32. data/lib/stbaldricks/entities/kid.rb +62 -62
  33. data/lib/stbaldricks/entities/kid_honor.rb +4 -4
  34. data/lib/stbaldricks/entities/lib/address.rb +2 -2
  35. data/lib/stbaldricks/entities/lib/alternate_shipping_address.rb +2 -2
  36. data/lib/stbaldricks/entities/lib/cacheable.rb +1 -3
  37. data/lib/stbaldricks/entities/lib/email_address.rb +2 -2
  38. data/lib/stbaldricks/entities/lib/fundraising_page.rb +1 -1
  39. data/lib/stbaldricks/entities/lib/payment.rb +14 -14
  40. data/lib/stbaldricks/entities/lib/phone.rb +3 -3
  41. data/lib/stbaldricks/entities/lib/third_party_media.rb +2 -2
  42. data/lib/stbaldricks/entities/lib/top_level.rb +2 -2
  43. data/lib/stbaldricks/entities/memorial.rb +2 -2
  44. data/lib/stbaldricks/entities/message.rb +8 -8
  45. data/lib/stbaldricks/entities/organization.rb +21 -21
  46. data/lib/stbaldricks/entities/page.rb +3 -5
  47. data/lib/stbaldricks/entities/participant.rb +42 -42
  48. data/lib/stbaldricks/entities/person.rb +96 -96
  49. data/lib/stbaldricks/entities/photo.rb +25 -25
  50. data/lib/stbaldricks/entities/recurring_gift.rb +23 -18
  51. data/lib/stbaldricks/entities/search.rb +8 -8
  52. data/lib/stbaldricks/entities/shave_schedule.rb +2 -2
  53. data/lib/stbaldricks/entities/team.rb +14 -14
  54. data/lib/stbaldricks/entities/user.rb +7 -5
  55. data/lib/stbaldricks/enums/cancer_types.rb +2 -0
  56. data/lib/stbaldricks/enums/country.rb +2 -0
  57. data/lib/stbaldricks/enums/league_status.rb +2 -0
  58. data/lib/stbaldricks/enums/model_type.rb +2 -0
  59. data/lib/stbaldricks/enums/permission_model_type.rb +2 -0
  60. data/lib/stbaldricks/enums/province.rb +2 -0
  61. data/lib/stbaldricks/enums/state.rb +2 -0
  62. data/lib/stbaldricks/enums/top_level_category_type.rb +2 -0
  63. data/lib/stbaldricks/log.rb +2 -0
  64. data/lib/stbaldricks/patches/string.rb +1 -1
  65. data/lib/stbaldricks/version.rb +1 -1
  66. data/spec/factories/kid.rb +1 -1
  67. metadata +89 -89
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72f8169c42adcc7c82ac7202042a1fffaad74fdfdb9f513be013d50da1110709
4
- data.tar.gz: faaba94f50842b9b3df938c7dfb7af80d04c8019611080ef7f18d58270951dca
3
+ metadata.gz: 14b9e6c77a59a48a0e7ce00985cbad7218c843444d894721cf30890f61cec975
4
+ data.tar.gz: a9f61d6be984ab4b3ca0bab2accbdddedce8cba6ac3dd2fccffeb3c72744f007
5
5
  SHA512:
6
- metadata.gz: 0fa190e26daf96ff0dcc2d59a95f236a250b7556c589f831d998cf6581939a741af5208a6490705f490e6cbdd15cafa405e416346a9344d4b3c17c955485cba2
7
- data.tar.gz: 6f8663a5989167abf30623ab012c8dc1d9735e5f373aba56dc195c12755eb8a5a91e5c6764855f77b6c971c5a754f30c4c3acf3052ead974047afdf951ecc4ce
6
+ metadata.gz: 38ba4e388284bc6f2ee0fe05e442d772783a4e4772f5fe07b6f3d8bd5452932a94773dc91668587e113ff165faabb95f624b9c41792c975dde9dbc0b2608172f
7
+ data.tar.gz: cb32b943fa1e0e93109214014c729811e276533014b5d612c2c6da19a9848107a5326935c5f07a2dd9e47c207f6ddf4f4f043cff69fdb9bdd005ad667266e46b
@@ -6,7 +6,7 @@ require 'securerandom'
6
6
  module SBF
7
7
  module Client
8
8
  class Configuration
9
- DEFAULT_API_ENDPOINT = 'https://api'
9
+ DEFAULT_API_ENDPOINT = 'https://api'.freeze
10
10
 
11
11
  @logger = nil
12
12
 
@@ -61,9 +61,7 @@ module SBF
61
61
  end
62
62
  end
63
63
 
64
- private
65
-
66
- def photo_for_upload(file, data)
64
+ private def photo_for_upload(file, data)
67
65
  if data.is_a?(SBF::Client::Photo)
68
66
  data.file = file
69
67
  data
@@ -8,8 +8,8 @@ module SBF
8
8
  actions DEFAULT_CRUD_ACTIONS
9
9
 
10
10
  module Type
11
- IMPORTED = 'imported'
12
- PROCESSED = 'processed'
11
+ IMPORTED = 'imported'.freeze
12
+ PROCESSED = 'processed'.freeze
13
13
  end
14
14
 
15
15
  attr_accessor :id
@@ -10,10 +10,10 @@ module SBF
10
10
  actions DEFAULT_CRUD_ACTIONS
11
11
 
12
12
  module Status
13
- PENDING = 'pending'
14
- ACCEPTED = 'accepted'
15
- CANCELED = 'canceled'
16
- DECLINED = 'declined'
13
+ PENDING = 'pending'.freeze
14
+ ACCEPTED = 'accepted'.freeze
15
+ CANCELED = 'canceled'.freeze
16
+ DECLINED = 'declined'.freeze
17
17
  end
18
18
 
19
19
  attr_accessor :id
@@ -17,8 +17,8 @@ module SBF
17
17
  blacklist_action :create
18
18
 
19
19
  module Type
20
- CHALLENGER = 'challenger'
21
- CHALLENGEE = 'challengee'
20
+ CHALLENGER = 'challenger'.freeze
21
+ CHALLENGEE = 'challengee'.freeze
22
22
  end
23
23
 
24
24
  class Totals < SBF::Client::BaseEntity
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -47,16 +47,14 @@ module EntityResponseConcern
47
47
  self
48
48
  end
49
49
 
50
- private
51
-
52
- def single_active_model_error
50
+ private def single_active_model_error
53
51
  return if errors.empty?
54
52
  return [:base, errors[:base].first] if errors[:base].any?
55
53
 
56
54
  errors.first
57
55
  end
58
56
 
59
- def log_deprecated(method_name, method_caller = nil)
57
+ private def log_deprecated(method_name, method_caller = nil)
60
58
  SBF::Client::Configuration.logger.warn do
61
59
  caller_message = method_caller.nil? ? '' : " Called from #{method_caller.first}"
62
60
 
@@ -11,7 +11,7 @@ module SBF
11
11
  actions DEFAULT_CRUD_ACTIONS
12
12
 
13
13
  module Type
14
- WEBSITE = 'website'
14
+ WEBSITE = 'website'.freeze
15
15
  end
16
16
 
17
17
  attr_reader :id
@@ -20,11 +20,11 @@ module SBF
20
20
  action :release_checkout
21
21
 
22
22
  module Status
23
- READY = 'ready'
24
- CHECKED_OUT = 'checked_out'
25
- COMPLETED = 'completed'
26
- ERROR_OUT_OF_SYNC_ADD = 'error_out_of_sync_add'
27
- ERROR_OUT_OF_SYNC_UPDATE = 'error_out_of_sync_update'
23
+ READY = 'ready'.freeze
24
+ CHECKED_OUT = 'checked_out'.freeze
25
+ COMPLETED = 'completed'.freeze
26
+ ERROR_OUT_OF_SYNC_ADD = 'error_out_of_sync_add'.freeze
27
+ ERROR_OUT_OF_SYNC_UPDATE = 'error_out_of_sync_update'.freeze
28
28
  end
29
29
 
30
30
  attr_accessor :id
@@ -44,9 +44,9 @@ module SBF
44
44
  entity_attr_accessor :name_pieces, 'SBF::Client::NamePieces'
45
45
 
46
46
  module Type
47
- HONOR = 'honor'
48
- TRIBUTE = 'tribute'
49
- MEMORY = 'memory'
47
+ HONOR = 'honor'.freeze
48
+ TRIBUTE = 'tribute'.freeze
49
+ MEMORY = 'memory'.freeze
50
50
  end
51
51
  end
52
52
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -28,7 +28,7 @@ module SBF
28
28
  action :invite
29
29
 
30
30
  cache_id -> { [id, year] }
31
- cache_id_from_hash ->(h) { [h[:id], h[:event_year]] }
31
+ cache_id_from_hash ->(h) { [h[:event_id], h[:event_year]] }
32
32
 
33
33
  disallow_instantiation
34
34
 
@@ -121,15 +121,15 @@ module SBF
121
121
 
122
122
  class Location < SBF::Client::Location
123
123
  module Type
124
- RESTAURANT = 'restaurant'
125
- SCHOOL = 'school'
126
- BUSINESS = 'business'
127
- PRIVATE_RESIDENCE = 'private_residence'
128
- HOSPITAL = 'hospital'
129
- MUNICIPALITY = 'municipality'
130
- OTHER = 'other'
131
- LEGACY = 'legacy'
132
- VIRTUAL = 'virtual'
124
+ RESTAURANT = 'restaurant'.freeze
125
+ SCHOOL = 'school'.freeze
126
+ BUSINESS = 'business'.freeze
127
+ PRIVATE_RESIDENCE = 'private_residence'.freeze
128
+ HOSPITAL = 'hospital'.freeze
129
+ MUNICIPALITY = 'municipality'.freeze
130
+ OTHER = 'other'.freeze
131
+ LEGACY = 'legacy'.freeze
132
+ VIRTUAL = 'virtual'.freeze
133
133
  end
134
134
 
135
135
  attr_accessor :type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stbaldricks/entities/lib/top_level'
2
4
 
3
5
  module SBF
@@ -27,35 +27,35 @@ module SBF
27
27
  disallow_instantiation
28
28
 
29
29
  module Status
30
- ACTIVE = 'active'
31
- PENDING = 'pending'
30
+ ACTIVE = 'active'.freeze
31
+ PENDING = 'pending'.freeze
32
32
  end
33
33
 
34
34
  module Category
35
- ATHLETICS = 'athletics'
36
- CELEBRATION = 'celebration'
37
- SALE = 'sale'
38
- OTHER = 'other'
35
+ ATHLETICS = 'athletics'.freeze
36
+ CELEBRATION = 'celebration'.freeze
37
+ SALE = 'sale'.freeze
38
+ OTHER = 'other'.freeze
39
39
  end
40
40
 
41
41
  module HowCreated
42
- WEBSITE = 'website'
43
- ADMIN_CONTROL_PANEL = 'admin_control_panel'
44
- ADMIN_IMPORT = 'admin_import'
45
- LEGACY = 'legacy'
46
- MOBILE = 'mobile'
42
+ WEBSITE = 'website'.freeze
43
+ ADMIN_CONTROL_PANEL = 'admin_control_panel'.freeze
44
+ ADMIN_IMPORT = 'admin_import'.freeze
45
+ LEGACY = 'legacy'.freeze
46
+ MOBILE = 'mobile'.freeze
47
47
  end
48
48
 
49
49
  module FundRelationshipType
50
- NO_ASSOCIATION = 'no_association'
51
- INDIRECT_ONE = 'indirect_one'
52
- INDIRECT_MULTIPLE = 'indirect_multiple'
53
- DIRECT = 'direct'
54
- DIRECT_BUT_LOCKED = 'direct_but_locked'
55
- INHERITED_FROM_TEAM = 'inherited_from_team'
56
- INHERITED_FROM_EVENT = 'inherited_from_event'
57
- INHERITED_FROM_TEAMS_EVENT = 'inherited_from_teams_event'
58
- INHERITED_FROM_BOTH_TEAM_AND_EVENT = 'inherited_from_both_team_and_event'
50
+ NO_ASSOCIATION = 'no_association'.freeze
51
+ INDIRECT_ONE = 'indirect_one'.freeze
52
+ INDIRECT_MULTIPLE = 'indirect_multiple'.freeze
53
+ DIRECT = 'direct'.freeze
54
+ DIRECT_BUT_LOCKED = 'direct_but_locked'.freeze
55
+ INHERITED_FROM_TEAM = 'inherited_from_team'.freeze
56
+ INHERITED_FROM_EVENT = 'inherited_from_event'.freeze
57
+ INHERITED_FROM_TEAMS_EVENT = 'inherited_from_teams_event'.freeze
58
+ INHERITED_FROM_BOTH_TEAM_AND_EVENT = 'inherited_from_both_team_and_event'.freeze
59
59
  end
60
60
 
61
61
  class Photos < SBF::Client::BaseEntity
@@ -15,8 +15,8 @@ module SBF
15
15
  disallow_instantiation
16
16
 
17
17
  module Status
18
- ACTIVE = 'active'
19
- PENDING = 'pending'
18
+ ACTIVE = 'active'.freeze
19
+ PENDING = 'pending'.freeze
20
20
  end
21
21
 
22
22
  class WebPage < SBF::Client::BaseEntity
@@ -16,43 +16,43 @@ module SBF
16
16
  attr_accessor :other
17
17
 
18
18
  module CancerType
19
- ACUTE_LYMPHOBLASTIC_LEUKEMIA = 'acute_lymphoblastic_leukemia'
20
- ACUTE_MYELOID_LEUKEMIA = 'acute_myeloid_leukemia'
21
- BRAIN_OR_SPINAL_CORD_TUMOR = 'brain_or_spinal_cord_tumor'
22
- KIDNEY_SARCOMA = 'kidney_sarcoma'
23
- EWING_SARCOMA = 'ewing_sarcoma'
24
- GERM_CELL_TUMOR = 'germ_cell_tumor'
25
- HEPATOBLASTOMA = 'hepatoblastoma'
26
- HODGKIN_LYMPHOMA = 'hodgkin_lymphoma'
27
- LANGERHANS_CELL_HISTIOCYTOSIS = 'langerhans_cell_histiocytosis'
28
- LYMPHOMA = 'lymphoma'
29
- NEUROBLASTOMA = 'neuroblastoma'
30
- NON_HODGKIN_LYMPHOMA = 'non_hodgkin_lymphoma'
31
- OSTEOSARCOMA = 'osteosarcoma'
32
- RETINOBLASTOMA = 'retinoblastoma'
33
- RHABDOMYOSARCOMA = 'rhabdomyosarcoma'
34
- WILMS_OR_OTHER_KIDNEY_TUMOR = 'wilms_or_other_kidney_tumor'
35
- ADULT_WITH_CHILDHOOD_CANCER = 'adult_with_childhood_cancer'
36
- OTHER_CHILDHOOD_CANCER = 'other_childhood_cancer'
19
+ ACUTE_LYMPHOBLASTIC_LEUKEMIA = 'acute_lymphoblastic_leukemia'.freeze
20
+ ACUTE_MYELOID_LEUKEMIA = 'acute_myeloid_leukemia'.freeze
21
+ BRAIN_OR_SPINAL_CORD_TUMOR = 'brain_or_spinal_cord_tumor'.freeze
22
+ KIDNEY_SARCOMA = 'kidney_sarcoma'.freeze
23
+ EWING_SARCOMA = 'ewing_sarcoma'.freeze
24
+ GERM_CELL_TUMOR = 'germ_cell_tumor'.freeze
25
+ HEPATOBLASTOMA = 'hepatoblastoma'.freeze
26
+ HODGKIN_LYMPHOMA = 'hodgkin_lymphoma'.freeze
27
+ LANGERHANS_CELL_HISTIOCYTOSIS = 'langerhans_cell_histiocytosis'.freeze
28
+ LYMPHOMA = 'lymphoma'.freeze
29
+ NEUROBLASTOMA = 'neuroblastoma'.freeze
30
+ NON_HODGKIN_LYMPHOMA = 'non_hodgkin_lymphoma'.freeze
31
+ OSTEOSARCOMA = 'osteosarcoma'.freeze
32
+ RETINOBLASTOMA = 'retinoblastoma'.freeze
33
+ RHABDOMYOSARCOMA = 'rhabdomyosarcoma'.freeze
34
+ WILMS_OR_OTHER_KIDNEY_TUMOR = 'wilms_or_other_kidney_tumor'.freeze
35
+ ADULT_WITH_CHILDHOOD_CANCER = 'adult_with_childhood_cancer'.freeze
36
+ OTHER_CHILDHOOD_CANCER = 'other_childhood_cancer'.freeze
37
37
  end
38
38
  end
39
39
 
40
40
  class Guardian < SBF::Client::BaseEntity
41
41
  module RelationshipType
42
- SELF_ADULT = 'adult'
43
- SELF_MINOR = 'minor'
44
- MOTHER = 'mother'
45
- FATHER = 'father'
46
- SISTER = 'sister'
47
- BROTHER = 'brother'
48
- AUNT = 'aunt'
49
- UNCLE = 'uncle'
50
- GRANDMOTHER = 'grandmother'
51
- GRANDFATHER = 'grandfather'
52
- STEP_MOTHER = 'stepmother'
53
- STEP_FATHER = 'stepfather'
54
- FRIEND = 'friend'
55
- COUSIN = 'cousin'
42
+ SELF_ADULT = 'adult'.freeze
43
+ SELF_MINOR = 'minor'.freeze
44
+ MOTHER = 'mother'.freeze
45
+ FATHER = 'father'.freeze
46
+ SISTER = 'sister'.freeze
47
+ BROTHER = 'brother'.freeze
48
+ AUNT = 'aunt'.freeze
49
+ UNCLE = 'uncle'.freeze
50
+ GRANDMOTHER = 'grandmother'.freeze
51
+ GRANDFATHER = 'grandfather'.freeze
52
+ STEP_MOTHER = 'stepmother'.freeze
53
+ STEP_FATHER = 'stepfather'.freeze
54
+ FRIEND = 'friend'.freeze
55
+ COUSIN = 'cousin'.freeze
56
56
  end
57
57
 
58
58
  attr_accessor :name
@@ -67,19 +67,19 @@ module SBF
67
67
  attr_accessor :other
68
68
 
69
69
  module SurvivorState
70
- IN_TREATMENT = 'in_treatment'
71
- IN_MAINTENANCE = 'in_maintenance'
72
- IN_REMISSION = 'in_remission'
73
- NED = 'no_evidence_of_disease'
74
- CANCER_FREE = 'cancer_free'
75
- OTHER_LIVING = 'other_living'
70
+ IN_TREATMENT = 'in_treatment'.freeze
71
+ IN_MAINTENANCE = 'in_maintenance'.freeze
72
+ IN_REMISSION = 'in_remission'.freeze
73
+ NED = 'no_evidence_of_disease'.freeze
74
+ CANCER_FREE = 'cancer_free'.freeze
75
+ OTHER_LIVING = 'other_living'.freeze
76
76
  end
77
77
 
78
78
  module DeceasedState
79
- ANGEL = 'angel'
80
- DECEASED = 'deceased'
81
- PASSED_AWAY = 'passed_away'
82
- OTHER_DECEASED = 'other_deceased'
79
+ ANGEL = 'angel'.freeze
80
+ DECEASED = 'deceased'.freeze
81
+ PASSED_AWAY = 'passed_away'.freeze
82
+ OTHER_DECEASED = 'other_deceased'.freeze
83
83
  end
84
84
  end
85
85
 
@@ -102,33 +102,33 @@ module SBF
102
102
  disallow_instantiation
103
103
 
104
104
  module Status
105
- ACTIVE = 'active'
106
- PENDING = 'pending'
107
- SUSPENDED = 'suspended'
105
+ ACTIVE = 'active'.freeze
106
+ PENDING = 'pending'.freeze
107
+ SUSPENDED = 'suspended'.freeze
108
108
  end
109
109
 
110
110
  class Relationship < SBF::Client::BaseEntity
111
111
  module Type
112
- SELF_ADULT = 'adult'
113
- SELF_MINOR = 'minor'
114
- MOTHER = 'mother'
115
- FATHER = 'father'
116
- SISTER = 'sister'
117
- BROTHER = 'brother'
118
- AUNT = 'aunt'
119
- UNCLE = 'uncle'
120
- GRANDMOTHER = 'grandmother'
121
- GRANDFATHER = 'grandfather'
122
- STEP_MOTHER = 'stepmother'
123
- STEP_FATHER = 'stepfather'
124
- FRIEND = 'friend'
125
- COUSIN = 'cousin'
112
+ SELF_ADULT = 'adult'.freeze
113
+ SELF_MINOR = 'minor'.freeze
114
+ MOTHER = 'mother'.freeze
115
+ FATHER = 'father'.freeze
116
+ SISTER = 'sister'.freeze
117
+ BROTHER = 'brother'.freeze
118
+ AUNT = 'aunt'.freeze
119
+ UNCLE = 'uncle'.freeze
120
+ GRANDMOTHER = 'grandmother'.freeze
121
+ GRANDFATHER = 'grandfather'.freeze
122
+ STEP_MOTHER = 'stepmother'.freeze
123
+ STEP_FATHER = 'stepfather'.freeze
124
+ FRIEND = 'friend'.freeze
125
+ COUSIN = 'cousin'.freeze
126
126
  end
127
127
 
128
128
  module GuardianType
129
- LEGAL_GUARDIAN = 'legal_guardian'
130
- NONCUSTODIAL_GUARDIAN = 'non_custodial_guardian'
131
- OTHER = 'other'
129
+ LEGAL_GUARDIAN = 'legal_guardian'.freeze
130
+ NONCUSTODIAL_GUARDIAN = 'non_custodial_guardian'.freeze
131
+ OTHER = 'other'.freeze
132
132
  end
133
133
 
134
134
  class Permissions < SBF::Client::BaseEntity