Class: Voucher::SegmentsBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/voucher/segments_builder.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#callObject



13
14
15
# File 'lib/voucher/segments_builder.rb', line 13

def call
  build
end