casual_helper 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/casual_helper/version.rb +1 -1
- data/lib/casual_helper.rb +2 -0
- metadata +2 -2
data/lib/casual_helper.rb
CHANGED
@@ -165,11 +165,13 @@ module CasualHelper
|
|
165
165
|
post "#{@api_server.to_s}/v0/taps/#{tap_id}/update", { :feedback => { :comments => [comment_string] } }
|
166
166
|
end
|
167
167
|
|
168
|
+
# @return hash with attributes passed in and readable_id
|
168
169
|
def get_config(id)
|
169
170
|
return if are_invalid id
|
170
171
|
get "#{@api_server.to_s}/v0/configs/#{id}"
|
171
172
|
end
|
172
173
|
|
174
|
+
# @param config is a hash
|
173
175
|
def put_config(id, config)
|
174
176
|
return if are_invalid id, config
|
175
177
|
put "#{@api_server.to_s}/v0/configs/#{id}", config
|