Sha256: 8dd3384a0aaf540bb6a0bfe24e5e9e4cffd2aaaa88359870f0acc80e02476f87
Contents?: true
Size: 542 Bytes
Versions: 16
Compression:
Stored size: 542 Bytes
Contents
require 'ruby-progressbar' module Clienteer module Ingester class YAMLFile def self.get_clients YAML.load_file("data/mindbody.yml") end def initialize @clients = YAMLFile.get_clients $progressbar = ProgressBar.create total: @clients.length, format: '%a %bᗧ%i %p%% %t', progress_mark: ' ', remainder_mark: '・' end def each @clients.each do |c| $progressbar.increment object = {raw: c} yield object end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems