Class: WormlyAPI

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/slugly/wormly_api.rb

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ WormlyAPI

Returns a new instance of WormlyAPI.



10
11
12
13
# File 'lib/slugly/wormly_api.rb', line 10

def initialize(key)
  super()
  @key = key
end

Instance Method Details

#enable_host_hm_linux(id, agenturl) ⇒ Object



15
16
17
# File 'lib/slugly/wormly_api.rb', line 15

def enable_host_hm_linux(id, agenturl)
  query('enableHostHMLinux', {:hostid => id, :agenturl => agenturl})
end