Class: Logbook::TaskDefinition

Inherits:
Struct
  • Object
show all
Defined in:
lib/logbook/task_definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#line_numberObject

Returns the value of attribute line_number

Returns:

  • (Object)

    the current value of line_number



2
3
4
# File 'lib/logbook/task_definition.rb', line 2

def line_number
  @line_number
end

#noteObject

Returns the value of attribute note

Returns:

  • (Object)

    the current value of note



2
3
4
# File 'lib/logbook/task_definition.rb', line 2

def note
  @note
end

#propertiesObject

Returns the value of attribute properties

Returns:

  • (Object)

    the current value of properties



2
3
4
# File 'lib/logbook/task_definition.rb', line 2

def properties
  @properties
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



2
3
4
# File 'lib/logbook/task_definition.rb', line 2

def status
  @status
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



2
3
4
# File 'lib/logbook/task_definition.rb', line 2

def tags
  @tags
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



2
3
4
# File 'lib/logbook/task_definition.rb', line 2

def title
  @title
end

Instance Method Details

#merge_page_properties(properties) ⇒ Object



3
4
5
# File 'lib/logbook/task_definition.rb', line 3

def merge_page_properties(properties)
  self.properties = properties.merge(self.properties)
end

#starts_clock?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/logbook/task_definition.rb', line 7

def starts_clock?
  false
end

#stops_clock?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/logbook/task_definition.rb', line 11

def stops_clock?
  false
end