Class: Kloxo::API::Client::ChangePlan
- Defined in:
- lib/kloxo/api/client/change_plan.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#plan ⇒ Object
Returns the value of attribute plan.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ChangePlan
constructor
A new instance of ChangePlan.
- #param ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ ChangePlan
Returns a new instance of ChangePlan.
7 8 9 10 |
# File 'lib/kloxo/api/client/change_plan.rb', line 7 def initialize params = {} self.name = params[:name] self.plan = params[:plan] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/kloxo/api/client/change_plan.rb', line 5 def name @name end |
#plan ⇒ Object
Returns the value of attribute plan.
5 6 7 |
# File 'lib/kloxo/api/client/change_plan.rb', line 5 def plan @plan end |
Instance Method Details
#param ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/kloxo/api/client/change_plan.rb', line 12 def param { "action" => "update", "class" => "client", "name" => self.name, "subaction" => "change_plan", "v-resourceplan_name" => self.plan }.to_param end |