Class: Kloxo::API::Client::Disable

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Disable

Returns a new instance of Disable.



7
8
9
# File 'lib/kloxo/api/client/disable.rb', line 7

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#paramObject



11
12
13
14
15
16
17
18
# File 'lib/kloxo/api/client/disable.rb', line 11

def param
  {
    "action" => "update",
    "class" => "client",
    "name" => self.name,
    "subaction" => "disable"
  }.to_param
end