Class: Basecamp::Services::TodolistsExtensions::TodolistFields

Inherits:
Struct
  • Object
show all
Defined in:
lib/basecamp/services/todolists_extensions.rb

Overview

A todolist's full writable state, yielded to the edit block. The whole struct is PUT back to the server, so clearing a field means setting it empty ("") — there is no third state. The writable set is exactly what BC3 permits: name and description.

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



28
29
30
# File 'lib/basecamp/services/todolists_extensions.rb', line 28

def description
  @description
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



28
29
30
# File 'lib/basecamp/services/todolists_extensions.rb', line 28

def name
  @name
end