Class: Ace::Retro::Models::Retro

Inherits:
Struct
  • Object
show all
Defined in:
lib/ace/retro/models/retro.rb

Overview

Value object representing a retrospective Holds all metadata and content for a single retro

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



8
9
10
# File 'lib/ace/retro/models/retro.rb', line 8

def content
  @content
end

#created_atObject

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



8
9
10
# File 'lib/ace/retro/models/retro.rb', line 8

def created_at
  @created_at
end

#file_pathObject

Returns the value of attribute file_path

Returns:

  • (Object)

    the current value of file_path



8
9
10
# File 'lib/ace/retro/models/retro.rb', line 8

def file_path
  @file_path
end

#folder_contentsObject

Returns the value of attribute folder_contents

Returns:

  • (Object)

    the current value of folder_contents



8
9
10
# File 'lib/ace/retro/models/retro.rb', line 8

def folder_contents
  @folder_contents
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



8
9
10
# File 'lib/ace/retro/models/retro.rb', line 8

def id
  @id
end

#metadataObject

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



8
9
10
# File 'lib/ace/retro/models/retro.rb', line 8

def 
  @metadata
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



8
9
10
# File 'lib/ace/retro/models/retro.rb', line 8

def path
  @path
end

#special_folderObject

Returns the value of attribute special_folder

Returns:

  • (Object)

    the current value of special_folder



8
9
10
# File 'lib/ace/retro/models/retro.rb', line 8

def special_folder
  @special_folder
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



8
9
10
# File 'lib/ace/retro/models/retro.rb', line 8

def status
  @status
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



8
9
10
# File 'lib/ace/retro/models/retro.rb', line 8

def tags
  @tags
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



8
9
10
# File 'lib/ace/retro/models/retro.rb', line 8

def title
  @title
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



8
9
10
# File 'lib/ace/retro/models/retro.rb', line 8

def type
  @type
end

Instance Method Details

#shortcutObject

Short reference (last 3 chars of ID)



29
30
31
# File 'lib/ace/retro/models/retro.rb', line 29

def shortcut
  id[-3..] if id
end

#special?Boolean

Check if retro is in a special folder

Returns:

  • (Boolean)


34
35
36
# File 'lib/ace/retro/models/retro.rb', line 34

def special?
  !special_folder.nil?
end

#to_sObject

Display-friendly representation



24
25
26
# File 'lib/ace/retro/models/retro.rb', line 24

def to_s
  "Retro(#{id}: #{title})"
end