Sha256: bfbcd34fd04aa95b11a532d9a633100050863313f2cd8e6dc6b6acda706ec106

Contents?: true

Size: 467 Bytes

Versions: 3

Compression:

Stored size: 467 Bytes

Contents

module SFKB
  # Methods for getting Salesforce Knowledge settings. Mix it into something
  # with an index.
  module Settings
    # Tells the default language
    def defaultLanguage
      settings.defaultLanguage
    end

    # The list of languages
    def languages
      settings.languages
    end

    def active_languages
      settings.languages.select(&:active).map(&:name)
    end

    def settings
      index.knowledgeManagement.settings
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sfkb-0.1.3 lib/sfkb/settings.rb
sfkb-0.1.2 lib/sfkb/settings.rb
sfkb-0.1.0 lib/sfkb/settings.rb