Class: Inch::Codebase::Proxy
- Inherits:
-
Object
- Object
- Inch::Codebase::Proxy
- Defined in:
- lib/inch/codebase/proxy.rb
Instance Attribute Summary collapse
-
#objects ⇒ Object
readonly
Returns the value of attribute objects.
Class Method Summary collapse
Instance Method Summary collapse
- #grade_lists ⇒ Object
-
#initialize(provider) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
Instance Attribute Details
#objects ⇒ Object (readonly)
Returns the value of attribute objects.
4 5 6 |
# File 'lib/inch/codebase/proxy.rb', line 4 def objects @objects end |
Class Method Details
Instance Method Details
#grade_lists ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/inch/codebase/proxy.rb', line 10 def grade_lists lists = Evaluation.new_grade_lists lists.each do |range| list = objects.select { |o| range.scores.include?(o.score) } range.objects = Objects.sort_by_priority(list) end lists end |