Sha256: 48d75e7d606d8ae6a4086378cd04229c24c6e338d3a320a524ee35c325b88643

Contents?: true

Size: 131 Bytes

Versions: 5

Compression:

Stored size: 131 Bytes

Contents

module Charger

  class Component::OnOff < Component
    def total_for val
      val > 0 ?  unit_price : 0.to_f
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
charger-0.2.0 lib/charger/component/on_off.rb
charger-0.1.1 lib/charger/component/on_off.rb
charger-0.1.0 lib/charger/component/on_off.rb
charger-0.0.3 lib/charger/component/on_off.rb
charger-0.0.2 lib/charger/component/on_off.rb