Class: Tracked
- Inherits:
-
Object
- Object
- Tracked
- Defined in:
- lib/tracker.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#filepath ⇒ Object
Returns the value of attribute filepath.
-
#status ⇒ Object
Returns the value of attribute status.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
7 8 9 |
# File 'lib/tracker.rb', line 7 def filename @filename end |
#filepath ⇒ Object
Returns the value of attribute filepath.
7 8 9 |
# File 'lib/tracker.rb', line 7 def filepath @filepath end |
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/tracker.rb', line 7 def status @status end |
#title ⇒ Object
Returns the value of attribute title.
7 8 9 |
# File 'lib/tracker.rb', line 7 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/tracker.rb', line 7 def type @type end |
Instance Method Details
#to_s ⇒ Object
9 10 11 12 13 |
# File 'lib/tracker.rb', line 9 def to_s "-#{title}\n" + " #{type}:#{status}\n" + " #{filepath}" end |