Sha256: 805596d49edeed64ee1acd43629746f803fa77a6af317437879f41d984a72bba
Contents?: true
Size: 1.63 KB
Versions: 2
Compression:
Stored size: 1.63 KB
Contents
module Lumberg module Cpanel class Park < Base # Public: Add a parked domain. # # options - Hash options for API call params (default: {}): # :domain - String domain to park. # :topdomain - String domain to park on top of (optional, default: # account primary domain). # # Returns Hash API response. def add(options = {}) perform_request({ :api_function => "park" }.merge(options)) end # Public: Remove a parked domain. # # options - Hash options for API call params (default: {}): # :domain - String parked domain to remove. # # Returns Hash API response. def remove(options = {}) perform_request({ :api_function => "unpark" }.merge(options)) end # Public: Get a list of parked domains. # # options - Hash options for API call params (default: {}): # :regex - String regular expression to filter search results # (optional). # # Returns Hash API response. def list(options = {}) perform_request({ :api_function => "listparkeddomains" }.merge(options)) end # Public: Get a list addon domains. # # options - Hash options for API call params (default: {}): # :regex - String regular expresion to filter search results # (optional). # # Returns Hash API response. def list_addon_domains(options = {}) perform_request({ :api_function => "listaddondomains" }.merge(options)) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lumberg-2.0.0.pre4 | lib/lumberg/cpanel/park.rb |
lumberg-2.0.0.pre3 | lib/lumberg/cpanel/park.rb |