• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / pdc_describe / 9dbcf7a4-1c56-4510-9614-74ad5a22cff6

31 Jul 2024 02:46PM UTC coverage: 1.08% (-95.1%) from 96.17%
9dbcf7a4-1c56-4510-9614-74ad5a22cff6

push

circleci

jrgriffiniii
wip

52 of 4814 relevant lines covered (1.08%)

0.01 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/models/group_option.rb
1
# frozen_string_literal: true
2
class GroupOption < ApplicationRecord
×
3
  EMAIL_MESSAGES = 0
×
4

5
  belongs_to :group, class_name: "Group"
×
6
  belongs_to :user
×
7

8
  enum option_type: { email_messages: 0 }
×
9

10
  # Provides a human-readable label for the type of the option
11
  # @note This should perhaps in the future parse from a YAML config. file
12
  # @return [String] the label
13
  def self.option_type_labels
×
14
    {
×
15
      email_messages: "E-mail messages for Group notifications"
×
16
    }
×
17
  end
×
18

19
  # Finds the label for the option type value set for a given Model
20
  # @param [Integer] value the option type value
21
  # @return [String] the label
22
  def self.find_option_type_label(value)
×
23
    option_type_labels.fetch(value.to_sym, nil)
×
24
  end
×
25

26
  # Finds the label for the option type
27
  # @return [String] the label
28
  def option_type_label
×
29
    self.class.find_option_type_label(option_type)
×
30
  end
×
31
end
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc