Sha256: 9a0010451c8d446d0e58703bc28c9fa4e4ccf9c7537c15e082cfd0e6539d46de

Contents?: true

Size: 616 Bytes

Versions: 1

Compression:

Stored size: 616 Bytes

Contents

module Fog
  module Tasks 
    class Wunderlist 
      class Real

        def create_list(title, attributes = {})
          request(
            :expects  => [201],
            :method   => 'POST',
            :path     => "/me/lists",
            :body     => { :title => title }.merge(attributes)
          )
        end

      end

      class Mock

        def create_list(title, 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/create_list.rb