Class: CpanelRuby::API::Account::ShowBw
- Defined in:
- lib/cpanel_ruby/api/account/show_bw.rb
Instance Attribute Summary collapse
-
#month ⇒ Object
Returns the value of attribute month.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ShowBw
constructor
A new instance of ShowBw.
- #param ⇒ Object
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
#month ⇒ Object
Returns the value of attribute month.
5 6 7 |
# File 'lib/cpanel_ruby/api/account/show_bw.rb', line 5 def month @month end |
#year ⇒ Object
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
#param ⇒ Object
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 |