class Fog::Tasks::Wunderlist::Mock

Public Class Methods

data() click to toggle source
# File lib/fog/wunderlist/tasks.rb, line 31
def self.data
  @data ||= Hash.new do |hash, key|
    hash[key] = {
      :tasks => [],
      :lists => []
    }
  end
end
new(options={}) click to toggle source
# File lib/fog/wunderlist/tasks.rb, line 44
def initialize(options={})
  @password = options[:wunderlist_password]
end
reset() click to toggle source
# File lib/fog/wunderlist/tasks.rb, line 40
def self.reset
  @data = nil
end

Public Instance Methods

create_list(title, attributes = {}) click to toggle source
# File lib/fog/wunderlist/requests/tasks/create_list.rb, line 19
def create_list(title, attributes = {})
  Fog::Mock.not_implemented
  #response = Excon::Response.new
  #response.status = 200
  #response.body = {
  #}
  #response
end
create_task(attributes) click to toggle source
# File lib/fog/wunderlist/requests/tasks/create_task.rb, line 22
def create_task(attributes)
  Fog::Mock.not_implemented
  #response = Excon::Response.new
  #response.status = 200
  #response.body = {
  #}
  #response
end
data() click to toggle source
# File lib/fog/wunderlist/tasks.rb, line 48
def data
  self.class.data[@password]
end
delete_list(id) click to toggle source
# File lib/fog/wunderlist/requests/tasks/delete_list.rb, line 18
def delete_list(id)
  Fog::Mock.not_implemented
  #response = Excon::Response.new
  #response.status = 200
  #response.body = {
  #}
  #response
end
delete_task(id) click to toggle source
# File lib/fog/wunderlist/requests/tasks/delete_task.rb, line 18
def delete_task(id)
  Fog::Mock.not_implemented
  #response = Excon::Response.new
  #response.status = 200
  #response.body = {
  #}
  #response
end
get_tasks(id) click to toggle source
# File lib/fog/wunderlist/requests/tasks/get_task.rb, line 18
def get_tasks(id)
  Fog::Mock.not_implemented
end
list_lists() click to toggle source
# File lib/fog/wunderlist/requests/tasks/list_lists.rb, line 18
def list_lists
  Fog::Mock.not_implemented
end
list_tasks() click to toggle source
# File lib/fog/wunderlist/requests/tasks/list_tasks.rb, line 18
def list_tasks
  Fog::Mock.not_implementeD
  #response = Excon::Response.new
  #response.status = 200
  #response.body = {
  #}
  #response
end
reset_data() click to toggle source
# File lib/fog/wunderlist/tasks.rb, line 52
def reset_data
  self.class.data.delete(@password)
end
update_list(id, attributes = {}) click to toggle source
# File lib/fog/wunderlist/requests/tasks/update_list.rb, line 19
def update_list(id, attributes = {})
  Fog::Mock.not_implemented
  #response = Excon::Response.new
  #response.status = 200
  #response.body = {
  #}
  #response
end
update_task(id, attributes = {}) click to toggle source
# File lib/fog/wunderlist/requests/tasks/update_task.rb, line 19
def update_task(id, attributes = {})
  Fog::Mock.not_implemented
  #response = Excon::Response.new
  #response.status = 200
  #response.body = {
  #}
  #response
end