Sha256: 9d6ce92bfe23333dc8d3c9060e4840d609aff342e3ecf126c8c14e9eafbf8933
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
module GroupDocs module Api module Helpers module Status private # # Converts status from/to human-readable format. # # @param [String, Symbol] status # @return [Symbol, String] # @raise [ArgumentError] if argument is not symbol/string # @api private # def parse_status(status) case status when Symbol then status.to_s.camelize when String then status.underscore.to_sym else raise ArgumentError, "Expected string/symbol, received: #{status.class}" end end end # Status end # Helpers end # Api end # GroupDocs
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
groupdocs-2.3.0 | lib/groupdocs/api/helpers/status_helper.rb |