Class: CpanelRuby::API::Account::ShowBw

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ ShowBw

Returns a new instance of ShowBw.



7
8
9
10
# File 'lib/cpanel_ruby/api/account/show_bw.rb', line 7

def initialize params = {}
  self.month = params[:month]
  self.year = params[:year]
end

Instance Attribute Details

#monthObject

Returns the value of attribute month.



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

def month
  @month
end

#yearObject

Returns the value of attribute year.



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

def year
  @year
end

Instance Method Details

#paramObject



12
13
14
15
16
17
# File 'lib/cpanel_ruby/api/account/show_bw.rb', line 12

def param
  {
    month: self.month,
    year: self.year
  }
end