Class: DeviceDBComms::Queue
- Inherits:
-
Shared
- Object
- Shared
- DeviceDBComms::Queue
show all
- Defined in:
- lib/devicedb_comms/queue.rb
Instance Method Summary
collapse
Methods inherited from Shared
#get, #initialize, #parse_response, #post, #put, #to_query
Instance Method Details
#find(id) ⇒ Object
10
11
12
|
# File 'lib/devicedb_comms/queue.rb', line 10
def find(id)
get("/queues/#{id}")
end
|
#find_by_name(name) ⇒ Object
6
7
8
|
# File 'lib/devicedb_comms/queue.rb', line 6
def find_by_name(name)
get("/queues/by_name/#{name.gsub(/\./, '%2E' )}")
end
|
#register(queue_params) ⇒ Object
14
15
16
|
# File 'lib/devicedb_comms/queue.rb', line 14
def register(queue_params)
post("/queues", queue_params)
end
|