Class: Renalware::Patients::Ingestion::Command
- Inherits:
-
Object
- Object
- Renalware::Patients::Ingestion::Command
- Defined in:
- app/models/renalware/patients/ingestion/command.rb
Direct Known Subclasses
Renalware::Patients::Ingestion::Commands::AddOrUpdatePatient
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(message) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(message) ⇒ Command
Returns a new instance of Command.
11 12 13 |
# File 'app/models/renalware/patients/ingestion/command.rb', line 11 def initialize() @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
9 10 11 |
# File 'app/models/renalware/patients/ingestion/command.rb', line 9 def @message end |
Class Method Details
.for(message) ⇒ Object
15 16 17 |
# File 'app/models/renalware/patients/ingestion/command.rb', line 15 def self.for() CommandFactory.new.for() end |
Instance Method Details
#call ⇒ Object
19 20 21 |
# File 'app/models/renalware/patients/ingestion/command.rb', line 19 def call raise NotImplementedError end |