lib/jss/api_object/scopable/scope.rb
# the symbols used in the API data are plural, e.g. 'network_segments'
# this will pluralize them, allowing us to use singulars as well.
the symbols used in the API data are plural, e.g. 'network_segments'
this will pluralize them, allowing us to use singulars as well.
the symbols used in the API data are plural e . g . ' network_segments ' this will pluralize them allowing us to use singulars as well .
def pluralize_key(key)
        if LDAP_JAMF_USER_KEYS.include? key
          :jamf_ldap_users
        elsif LDAP_GROUP_KEYS.include? key
          :ldap_user_groups
        else
          key.to_s.end_with?(ESS) ? key : "#{key}s".to_sym
        end
      end
def pluralize_key ( key ) if LDAP_JAMF_USER_KEYS . include? key :jamf_ldap_users elsif LDAP_GROUP_KEYS . include? key :ldap_user_groups else key . to_s . end_with? ( ESS ) ? key : "#{key}s" . to_sym end end
the symbols used in the API data are plural, e.g.
the symbols used in the API data are plural e . g .
key