Class: GitWaybackMachine::History::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/git_wayback_machine/history.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commentObject

Returns the value of attribute comment



10
11
12
# File 'lib/git_wayback_machine/history.rb', line 10

def comment
  @comment
end

#nameObject

Returns the value of attribute name



10
11
12
# File 'lib/git_wayback_machine/history.rb', line 10

def name
  @name
end

#shaObject

Returns the value of attribute sha



10
11
12
# File 'lib/git_wayback_machine/history.rb', line 10

def sha
  @sha
end

#timeObject

Returns the value of attribute time



10
11
12
# File 'lib/git_wayback_machine/history.rb', line 10

def time
  @time
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/git_wayback_machine/history.rb', line 11

def to_s
  "\e[33m#{sha}\e[37m | \e[35m#{name} \e[36m(#{time})\e[37m - #{comment}\e[0m"
end