Class: Network::Graph
- Inherits:
-
Object
- Object
- Network::Graph
- Defined in:
- app/models/network/graph.rb
Instance Attribute Summary collapse
-
#commits ⇒ Object
readonly
Returns the value of attribute commits.
-
#days ⇒ Object
readonly
Returns the value of attribute days.
-
#map ⇒ Object
readonly
Returns the value of attribute map.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(project, ref, commit, filter_ref) ⇒ Graph
constructor
A new instance of Graph.
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 |
# 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 end |
Instance Attribute Details
#commits ⇒ Object (readonly)
Returns the value of attribute commits.
5 6 7 |
# File 'app/models/network/graph.rb', line 5 def commits @commits end |
#days ⇒ Object (readonly)
Returns the value of attribute days.
5 6 7 |
# File 'app/models/network/graph.rb', line 5 def days @days end |
#map ⇒ Object (readonly)
Returns the value of attribute map.
5 6 7 |
# File 'app/models/network/graph.rb', line 5 def map @map end |
#repo ⇒ Object (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_count ⇒ Object
7 8 9 |
# File 'app/models/network/graph.rb', line 7 def self.max_count @max_count ||= 650 end |