def prepare_request(verb, resource, body, headers)
      msg = "#{verb.upcase} #{resource}"

      request = Net::HTTP.const_get(verb.capitalize).new(resource)

      unless verb.eql?(:get)
        request.body = body
        msg.concat(" with #{body.bytesize} bytes")
      end

      @logger.info(msg)
      send_request(request, headers)
    end
def prepare_request(verb, resource, body, headers)
      msg = "#{verb.upcase} #{resource}"

      request = Net::HTTP.const_get(verb.capitalize).new(resource)

      unless verb.eql?(:get)
        request.body = body
        msg.concat(" with #{body.bytesize} bytes")
      end

      @logger.info(msg)
      send_request(request, headers)
    end
Private: Prepares HTTP requests for :get, :post and :put

 verb     - The http method/verb to use for the request
 resource - The resource on the currently active Device
 body     - The body of the action
 headers  - The headers of the request

 Returns a response object