Class: Network::Graph

Inherits:
Object
  • Object
show all
Defined in:
app/models/network/graph.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project, ref, commit, filter_ref) ⇒ Graph

Returns a new instance of Graph.



11
12
13
14
15
16
17
18
19
20
21
# File 'app/models/network/graph.rb', line 11

def initialize(project, ref, commit, filter_ref)
  @project = project
  @ref = ref
  @commit = commit
  @filter_ref = filter_ref
  @repo = project.repository

  @commits = collect_commits
  @days = index_commits
  @notes = collect_notes
end

Instance Attribute Details

#commitsObject (readonly)

Returns the value of attribute commits.



5
6
7
# File 'app/models/network/graph.rb', line 5

def commits
  @commits
end

#daysObject (readonly)

Returns the value of attribute days.



5
6
7
# File 'app/models/network/graph.rb', line 5

def days
  @days
end

#mapObject (readonly)

Returns the value of attribute map.



5
6
7
# File 'app/models/network/graph.rb', line 5

def map
  @map
end

#notesObject (readonly)

Returns the value of attribute notes.



5
6
7
# File 'app/models/network/graph.rb', line 5

def notes
  @notes
end

#repoObject (readonly)

Returns the value of attribute repo.



5
6
7
# File 'app/models/network/graph.rb', line 5

def repo
  @repo
end

Class Method Details

.max_countObject



7
8
9
# File 'app/models/network/graph.rb', line 7

def self.max_count
  @max_count ||= 650
end