Class: SirSyncalot
- Inherits:
-
Object
- Object
- SirSyncalot
- Defined in:
- lib/sir-sync-a-lot.rb
Constant Summary collapse
- VERSION =
'0.0.1'
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action = "sync") ⇒ SirSyncalot
constructor
A new instance of SirSyncalot.
- #run! ⇒ Object
Constructor Details
#initialize(action = "sync") ⇒ SirSyncalot
Returns a new instance of SirSyncalot.
11 12 13 |
# File 'lib/sir-sync-a-lot.rb', line 11 def initialize(action = "sync") @action = action end |
Class Method Details
.run!(*args) ⇒ Object
5 6 7 |
# File 'lib/sir-sync-a-lot.rb', line 5 def self.run!(*args) new(*args).run! end |
Instance Method Details
#run! ⇒ Object
15 16 17 18 |
# File 'lib/sir-sync-a-lot.rb', line 15 def run! validate_inputs! perform_action! end |