Class: GitWrapper::Results::LogInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/git_wrapper/results/log_info.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ LogInfo

Returns a new instance of LogInfo.



5
6
7
# File 'lib/git_wrapper/results/log_info.rb', line 5

def initialize(attributes)
  @attributes = attributes
end

Instance Method Details

#abbreviated_parentsObject



19
20
21
# File 'lib/git_wrapper/results/log_info.rb', line 19

def abbreviated_parents
  abbreviated_parent_hashes.split
end

#merge?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/git_wrapper/results/log_info.rb', line 23

def merge?
  parents.length == 2
end

#parentsObject



15
16
17
# File 'lib/git_wrapper/results/log_info.rb', line 15

def parents
  parent_hashes.split
end