Module: Click

Defined in:
lib/clicks.rb

Defined Under Namespace

Classes: Error

Class Method Summary collapse

Class Method Details

.call(options = nil) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/clicks.rb', line 8

def self.call(options = nil)
  serializer = if options.present?
                 Clicks::Serializer.new(options)
               else
                 Clicks::Serializer.new
               end
  clicks_list = serializer.read_file
  Clicks::ClicksManagement.new(clicks_list, options)
end