Class: Kloxo::API::Client::Delete

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Delete

Returns a new instance of Delete.



7
8
9
# File 'lib/kloxo/api/client/delete.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/delete.rb', line 5

def name
  @name
end

Instance Method Details

#paramObject



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

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