casual_helper 0.0.9 → 0.0.10
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.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)
         |