class Dashdate::App
Attributes
arg_parser[RW]
publisher[RW]
Public Class Methods
build()
click to toggle source
# File lib/app.rb, line 7 def self.build new(Dashdate::Publisher.build, Dashdate::ArgParser.new) end
new(publisher, arg_parser)
click to toggle source
# File lib/app.rb, line 10 def initialize publisher, arg_parser @publisher = publisher @arg_parser = arg_parser end
Public Instance Methods
handle_args(args)
click to toggle source
# File lib/app.rb, line 14 def handle_args args parsed = @arg_parser.parse(args) @publisher.update(parsed[:widget], parsed[:values], parsed[:auth]) end