Class: Mdm::Command
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Mdm::Command
- Defined in:
- app/models/mdm/command.rb
Defined Under Namespace
Modules: Status
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.available_commands ⇒ Object
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
13 14 15 |
# File 'app/models/mdm/command.rb', line 13 def complete? status == Status::ACKNOWLEDGED end |