Sha256: 0199b57cf7b5d60eb4faf63ba3460fa6a20f5d931059069a8dc072d97210effd
Contents?: true
Size: 1.24 KB
Versions: 15
Compression:
Stored size: 1.24 KB
Contents
module Lumberg module Cpanel # Public: Allows users to list mime types and handlers class Mime < Base # Public: List mime types associated with Apache # # options - Hash options for API call params (default: {}) # :system - String parameter allows you to specify whether or not to # only return system wide mime types (default: '') # :user - String parameter allows you to specify whether or not to # only return user defined mime types (default: '') # # Returns Hash API response def list(options = {}) perform_request({ api_function: 'listmime' }.merge(options)) end # Public: List handlers associated with Apache # # options - Hash options for API call params (default: {}) # :system - String parameter allows you to specify whether or not to # only return system wide handlers (default: '') # :user - String parameter allows you to specify whether or not to # only return user defined handlers (default: '') # # Returns Hash API response def handlers(options = {}) perform_request({ api_function: 'listhandlers' }.merge(options)) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems