Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Aspect is :perfect; cut unused stuff from summarization

  • Loading branch information...
commit ca74072c784fefb294e012e208f1ce3efbfab3fb 1 parent 64b39d0
@ihough ihough authored
Showing with 1 addition and 9 deletions.
  1. +1 −9 lib/electricity_use/summarization.rb
View
10 lib/electricity_use/summarization.rb
@@ -6,16 +6,8 @@ module Summarization
def self.included(base)
base.extend SummaryJudgement
base.summarize do |has|
-# has.adjective 'one-way', :if => lambda { |flight| flight.trips == 1 }
-# has.adjective 'round-trip', :if => lambda { |flight| flight.trips == 2 }
-# has.adjective 'nonstop', :if => lambda { |flight| flight.segments_per_trip == 1 }
-# has.identity 'flight'
-# has.modifier lambda { |flight| "from #{flight.origin_airport.name}" }, :if => :origin_airport
-# has.modifier lambda { |flight| "to #{flight.destination_airport.name}" }, :if => :destination_airport
-# has.modifier lambda { |flight| "on a #{flight.vehicle}" }, :if => :vehicle
-# has.modifier lambda { |flight| "on #{flight.date.to_formatted_s(:archive)}"}, :if => :date
has.verb :use
- has.aspect :imperfect
+ has.aspect :perfect
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.