Sha256: 67c9ca1ce3d2245f7c977e33833687407ee0daae6cd8ab02bfb1f0e936e31cbf

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

module Fog
  module Tasks 
    class Wunderlist 
      class Real

        def update_task(id, attributes = {})
          request(
            :expects  => [200],
            :method   => 'PUT',
            :path     => "#{id}",
            :body     => attributes 
          )
        end

      end

      class Mock

        def update_task(id, attributes = {})
          Fog::Mock.not_implemented
          #response = Excon::Response.new
          #response.status = 200
          #response.body = {
          #}
          #response
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-wunderlist-0.1 lib/fog/wunderlist/requests/tasks/update_task.rb