Class: Mdm::Command

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/mdm/command.rb

Defined Under Namespace

Modules: Status

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.available_commandsObject



17
18
19
20
# File 'app/models/mdm/command.rb', line 17

def self.available_commands
  Payload.methods.select { |method|
    method.to_s.start_with? 'payload_' }
end

Instance Method Details

#complete?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'app/models/mdm/command.rb', line 13

def complete?
  status == Status::ACKNOWLEDGED
end