Class: Kloxo::API::Client::DeleteDomain

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ DeleteDomain

Returns a new instance of DeleteDomain.



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

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

Instance Attribute Details

#domainObject

Returns the value of attribute domain.



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

def domain
  @domain
end

#parent_nameObject

Returns the value of attribute parent_name.



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

def parent_name
  @parent_name
end

Instance Method Details

#paramObject



12
13
14
15
16
17
18
19
20
# File 'lib/kloxo/api/client/delete_domain.rb', line 12

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