casual_helper 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/casual_helper.rb +10 -0
- data/lib/casual_helper/version.rb +1 -1
- metadata +2 -2
data/lib/casual_helper.rb
CHANGED
@@ -165,6 +165,16 @@ module CasualHelper
|
|
165
165
|
post "#{@api_server.to_s}/v0/taps/#{tap_id}/update", { :feedback => { :comments => [comment_string] } }
|
166
166
|
end
|
167
167
|
|
168
|
+
def get_config(id)
|
169
|
+
return if are_invalid id
|
170
|
+
get "#{@api_server.to_s}/v0/configs/#{id}"
|
171
|
+
end
|
172
|
+
|
173
|
+
def put_config(id, config)
|
174
|
+
return if are_invalid id, config
|
175
|
+
put "#{@api_server.to_s}/v0/configs/#{id}", config
|
176
|
+
end
|
177
|
+
|
168
178
|
private
|
169
179
|
|
170
180
|
def get(url)
|