Class: Kloxo::API::Client::ChangePlan

Inherits:
Request
  • Object
show all
Defined in:
lib/kloxo/api/client/change_plan.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/kloxo/api/client/change_plan.rb', line 5

def name
  @name
end

#planObject

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

#paramObject



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