Class: Ace::Idea::Models::Idea
- Inherits:
-
Struct
- Object
- Struct
- Ace::Idea::Models::Idea
- Defined in:
- lib/ace/idea/models/idea.rb
Overview
Value object representing an idea Holds all metadata and content for a single idea
Instance Attribute Summary collapse
-
#attachments ⇒ Object
Returns the value of attribute attachments.
-
#content ⇒ Object
Returns the value of attribute content.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#id ⇒ Object
Returns the value of attribute id.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#path ⇒ Object
Returns the value of attribute path.
-
#special_folder ⇒ Object
Returns the value of attribute special_folder.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#shortcut ⇒ Object
Short reference (last 3 chars of ID).
-
#special? ⇒ Boolean
Check if idea is in a special folder.
-
#to_s ⇒ Object
Display-friendly representation.
Instance Attribute Details
#attachments ⇒ Object
Returns the value of attribute attachments
8 9 10 |
# File 'lib/ace/idea/models/idea.rb', line 8 def @attachments end |
#content ⇒ Object
Returns the value of attribute content
8 9 10 |
# File 'lib/ace/idea/models/idea.rb', line 8 def content @content end |
#created_at ⇒ Object
Returns the value of attribute created_at
8 9 10 |
# File 'lib/ace/idea/models/idea.rb', line 8 def created_at @created_at end |
#file_path ⇒ Object
Returns the value of attribute file_path
8 9 10 |
# File 'lib/ace/idea/models/idea.rb', line 8 def file_path @file_path end |
#id ⇒ Object
Returns the value of attribute id
8 9 10 |
# File 'lib/ace/idea/models/idea.rb', line 8 def id @id end |
#metadata ⇒ Object
Returns the value of attribute metadata
8 9 10 |
# File 'lib/ace/idea/models/idea.rb', line 8 def @metadata end |
#path ⇒ Object
Returns the value of attribute path
8 9 10 |
# File 'lib/ace/idea/models/idea.rb', line 8 def path @path end |
#special_folder ⇒ Object
Returns the value of attribute special_folder
8 9 10 |
# File 'lib/ace/idea/models/idea.rb', line 8 def special_folder @special_folder end |
#status ⇒ Object
Returns the value of attribute status
8 9 10 |
# File 'lib/ace/idea/models/idea.rb', line 8 def status @status end |
#tags ⇒ Object
Returns the value of attribute tags
8 9 10 |
# File 'lib/ace/idea/models/idea.rb', line 8 def @tags end |
#title ⇒ Object
Returns the value of attribute title
8 9 10 |
# File 'lib/ace/idea/models/idea.rb', line 8 def title @title end |
Instance Method Details
#shortcut ⇒ Object
Short reference (last 3 chars of ID)
28 29 30 |
# File 'lib/ace/idea/models/idea.rb', line 28 def shortcut id[-3..] if id end |
#special? ⇒ Boolean
Check if idea is in a special folder
33 34 35 |
# File 'lib/ace/idea/models/idea.rb', line 33 def special? !special_folder.nil? end |
#to_s ⇒ Object
Display-friendly representation
23 24 25 |
# File 'lib/ace/idea/models/idea.rb', line 23 def to_s "Idea(#{id}: #{title})" end |