Sha256: 22fe2eddb5049f5a22bd4bb35cb799cbd34c05e635b8c56eb042ce853a214aa2

Contents?: true

Size: 195 Bytes

Versions: 1

Compression:

Stored size: 195 Bytes

Contents

module Tippsy
  class Builder
    def initialize total:, gratuity:
      @total = total
      @gratuity = gratuity
    end

    def calculate
      @total + (@total * @gratuity)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tippsy-0.1.1 lib/tippsy/builder.rb