Class: Tracked

Inherits:
Object
  • Object
show all
Defined in:
lib/tracker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



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

def filename
  @filename
end

#filepathObject

Returns the value of attribute filepath.



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

def filepath
  @filepath
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Instance Method Details

#to_sObject



9
10
11
12
13
# File 'lib/tracker.rb', line 9

def to_s
	"-#{title}\n" +
	"  #{type}:#{status}\n" +
	"  #{filepath}"
end