Class: Basecamp::Services::DocumentsExtensions::DocumentFields

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

Overview

A document'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: title and content.

Instance Attribute Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



34
35
36
# File 'lib/basecamp/services/documents_extensions.rb', line 34

def content
  @content
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



34
35
36
# File 'lib/basecamp/services/documents_extensions.rb', line 34

def title
  @title
end