Class: Kloxo::API::Client::Info

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Info

Returns a new instance of Info.



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

def name
  @name
end

Instance Method Details

#paramObject



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

def param
  {
    "action" => "getproperty",
    "class" => "client",
    "name" => self.name,
    "v-status" => "",
    "v-contactemail" => "",
    "v-used" => "",
    "v-priv" => "",
    "v-resourceplan_used" => ""
  }.to_param
end