lib/groupdocs/api/helpers/access_mode_helper.rb in groupdocs-2.2.0 vs lib/groupdocs/api/helpers/access_mode_helper.rb in groupdocs-2.3.0

- old
+ new

@@ -1,27 +1,27 @@ -module GroupDocs - module Api - module Helpers - module AccessMode - - private - - # - # Converts access mode from/to human-readable format. - # - # @param [String, Symbol] mode - # @return [Symbol, String] - # @raise [ArgumentError] if argument is not symbol/string - # @api private - # - def parse_access_mode(mode) - case mode - when Symbol then mode.to_s.capitalize - when String then mode.downcase.to_sym - else raise ArgumentError, "Expected string/symbol, received: #{mode.class}" - end - end - - end # AccessMode - end # Helpers - end # Api -end # GroupDocs +module GroupDocs + module Api + module Helpers + module AccessMode + + private + + # + # Converts access mode from/to human-readable format. + # + # @param [String, Symbol] mode + # @return [Symbol, String] + # @raise [ArgumentError] if argument is not symbol/string + # @api private + # + def parse_access_mode(mode) + case mode + when Symbol then mode.to_s.capitalize + when String then mode.downcase.to_sym + else raise ArgumentError, "Expected string/symbol, received: #{mode.class}" + end + end + + end # AccessMode + end # Helpers + end # Api +end # GroupDocs