Class: CpanelRuby::API::Account::CreateAccount

Inherits:
Request
  • Object
show all
Defined in:
lib/cpanel_ruby/api/account/create_account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ CreateAccount

Returns a new instance of CreateAccount.



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 13

def initialize params = {}
  self.username = params[:username]
  self.domain = params[:domain]
  self.plan = params[:plan]
  self.pkgname = params[:pkgname]
  self.savepkg = params[:savepkg]
  self.featurelist = params[:featurelist]
  self.quota = params[:quota]
  self.password = params[:password]
  self.ip = params[:ip]
  self.cgi = params[:cgi]
  self.spamassassin = params[:spamassassin]
  self.frontpage = params[:frontpage]
  self.hasshell = params[:hasshell]
  self.contactemail = params[:contactemail]
  self.cpmod = params[:cpmod]
  self.maxftp = params[:maxftp]
  self.maxsql = params[:maxsql]
  self.maxpop = params[:maxpop]
  self.maxlst = params[:maxlst]
  self.maxsub = params[:maxsub]
  self.maxpark = params[:maxpark]
  self.maxaddon = params[:maxaddon]
  self.bwlimit = params[:bwlimit]
  self.customip = params[:customip]
  self.language = params[:language]
  self.useregns = params[:useregns]
  self.hasuseregns = params[:hasuseregns]
  self.reseller = params[:reseller]
  self.forcedns = params[:forcedns]
  self.mailbox_format = params[:mailbox_format]
  self.mxcheck = params[:mxcheck]
  self.max_email_per_hour = params[:max_email_per_hour]
  self.max_emailacct_quota = params[:max_emailacct_quota]
  self.max_defer_fail_percentage = params[:max_defer_fail_percentage]
  self.uid = params[:uid]
  self.gid = params[:gid]
  self.homedir = params[:homedir]
  self.dkim = params[:dkim]
  self.spf = params[:spf]
  self.owner = params[:owner]
end

Instance Attribute Details

#bwlimitObject

Returns the value of attribute bwlimit.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def bwlimit
  @bwlimit
end

#cgiObject

Returns the value of attribute cgi.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def cgi
  @cgi
end

#contactemailObject

Returns the value of attribute contactemail.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def contactemail
  @contactemail
end

#cpmodObject

Returns the value of attribute cpmod.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def cpmod
  @cpmod
end

#customipObject

Returns the value of attribute customip.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def customip
  @customip
end

#dkimObject

Returns the value of attribute dkim.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def dkim
  @dkim
end

#domainObject

Returns the value of attribute domain.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def domain
  @domain
end

#featurelistObject

Returns the value of attribute featurelist.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def featurelist
  @featurelist
end

#forcednsObject

Returns the value of attribute forcedns.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def forcedns
  @forcedns
end

#frontpageObject

Returns the value of attribute frontpage.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def frontpage
  @frontpage
end

#gidObject

Returns the value of attribute gid.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def gid
  @gid
end

#hasshellObject

Returns the value of attribute hasshell.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def hasshell
  @hasshell
end

#hasuseregnsObject

Returns the value of attribute hasuseregns.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def hasuseregns
  @hasuseregns
end

#homedirObject

Returns the value of attribute homedir.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def homedir
  @homedir
end

#ipObject

Returns the value of attribute ip.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def ip
  @ip
end

#languageObject

Returns the value of attribute language.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def language
  @language
end

#mailbox_formatObject

Returns the value of attribute mailbox_format.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def mailbox_format
  @mailbox_format
end

#max_defer_fail_percentageObject

Returns the value of attribute max_defer_fail_percentage.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def max_defer_fail_percentage
  @max_defer_fail_percentage
end

#max_email_per_hourObject

Returns the value of attribute max_email_per_hour.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def max_email_per_hour
  @max_email_per_hour
end

#max_emailacct_quotaObject

Returns the value of attribute max_emailacct_quota.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def max_emailacct_quota
  @max_emailacct_quota
end

#maxaddonObject

Returns the value of attribute maxaddon.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def maxaddon
  @maxaddon
end

#maxftpObject

Returns the value of attribute maxftp.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def maxftp
  @maxftp
end

#maxlstObject

Returns the value of attribute maxlst.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def maxlst
  @maxlst
end

#maxparkObject

Returns the value of attribute maxpark.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def maxpark
  @maxpark
end

#maxpopObject

Returns the value of attribute maxpop.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def maxpop
  @maxpop
end

#maxsqlObject

Returns the value of attribute maxsql.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def maxsql
  @maxsql
end

#maxsubObject

Returns the value of attribute maxsub.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def maxsub
  @maxsub
end

#mxcheckObject

Returns the value of attribute mxcheck.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def mxcheck
  @mxcheck
end

#ownerObject

Returns the value of attribute owner.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def owner
  @owner
end

#passwordObject

Returns the value of attribute password.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def password
  @password
end

#pkgnameObject

Returns the value of attribute pkgname.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def pkgname
  @pkgname
end

#planObject

Returns the value of attribute plan.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def plan
  @plan
end

#quotaObject

Returns the value of attribute quota.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def quota
  @quota
end

#resellerObject

Returns the value of attribute reseller.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def reseller
  @reseller
end

#savepkgObject

Returns the value of attribute savepkg.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def savepkg
  @savepkg
end

#spamassassinObject

Returns the value of attribute spamassassin.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def spamassassin
  @spamassassin
end

#spfObject

Returns the value of attribute spf.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def spf
  @spf
end

#uidObject

Returns the value of attribute uid.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def uid
  @uid
end

#useregnsObject

Returns the value of attribute useregns.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def useregns
  @useregns
end

#usernameObject

Returns the value of attribute username.



5
6
7
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 5

def username
  @username
end

Instance Method Details

#paramObject



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/cpanel_ruby/api/account/create_account.rb', line 56

def param
  {
    username: self.username,
    domain: self.domain,
    plan: self.plan,
    pkgname: self.pkgname,
    savepkg: self.savepkg,
    featurelist: self.featurelist,
    quota: self.quota,
    password: self.password,
    ip: self.ip,
    cgi: self.cgi,
    spamassassin: self.spamassassin,
    frontpage: self.frontpage,
    hasshell: self.hasshell,
    contactemail: self.contactemail,
    cpmod: self.cpmod,
    maxftp: self.maxftp,
    maxsql: self.maxsql,
    maxpop: self.maxpop,
    maxlst: self.maxlst,
    maxsub: self.maxsub,
    maxpark: self.maxpark,
    maxaddon: self.maxaddon,
    bwlimit: self.bwlimit,
    customip: self.customip,
    language: self.language,
    useregns: self.useregns,
    hasuseregns: self.hasuseregns,
    reseller: self.reseller,
    forcedns: self.forcedns,
    mailbox_format: self.mailbox_format,
    mxcheck: self.mxcheck,
    max_email_per_hour: self.max_email_per_hour,
    max_emailacct_quota: self.max_emailacct_quota,
    max_defer_fail_percentage: self.max_defer_fail_percentage,
    uid: self.uid,
    gid: self.gid,
    homedir: self.homedir,
    dkim: self.dkim,
    spf: self.spf,
    owner: self.owner
  }
end