Class: DeviceDBComms::Hive
Instance Method Summary
collapse
Methods inherited from Shared
#get, #initialize, #parse_response, #post, #put, #to_query
Instance Method Details
#find(hive_id) ⇒ Object
6
7
8
|
# File 'lib/devicedb_comms/hive.rb', line 6
def find(hive_id)
get("/hives/#{hive_id}")
end
|
#poll(hive_id) ⇒ Object
14
15
16
|
# File 'lib/devicedb_comms/hive.rb', line 14
def poll(hive_id)
post("/hives/#{hive_id}/poll")
end
|
#register(hive_name, mac_address, ip_address) ⇒ Object
10
11
12
|
# File 'lib/devicedb_comms/hive.rb', line 10
def register(hive_name, mac_address, ip_address)
post("/hives/register", { hive: { hostname: hive_name, mac: mac_address, ip_address: ip_address }})
end
|