Class: BigShift::BaseCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/big_shift/commands/base_command.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.execute(*args) ⇒ Object



4
5
6
# File 'lib/big_shift/commands/base_command.rb', line 4

def execute(*args)
  self.new(*args).execute
end

Instance Method Details

#executeObject



9
10
11
12
13
14
# File 'lib/big_shift/commands/base_command.rb', line 9

def execute
  @access_token = AccessTokenService.retrieve_token
  @response = on_execute
  scrub @response
  @response
end