Class: Voucher::SegmentsBuilder
- Inherits:
-
Object
- Object
- Voucher::SegmentsBuilder
- Defined in:
- lib/voucher/segments_builder.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(data) ⇒ SegmentsBuilder
constructor
A new instance of SegmentsBuilder.
Constructor Details
#initialize(data) ⇒ SegmentsBuilder
Returns a new instance of SegmentsBuilder.
9 10 11 |
# File 'lib/voucher/segments_builder.rb', line 9 def initialize(data) @data = data end |
Class Method Details
.call(data) ⇒ Object
5 6 7 |
# File 'lib/voucher/segments_builder.rb', line 5 def self.call(data) new(data).call end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/voucher/segments_builder.rb', line 13 def call build end |