Class: Renalware::Patients::Ingestion::Command

Inherits:
Object
  • Object
show all
Defined in:
app/models/renalware/patients/ingestion/command.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



9
10
11
# File 'app/models/renalware/patients/ingestion/command.rb', line 9

def message
  @message
end

Class Method Details

.for(message) ⇒ Object



15
16
17
# File 'app/models/renalware/patients/ingestion/command.rb', line 15

def self.for(message)
  CommandFactory.new.for(message)
end

Instance Method Details

#callObject

Raises:

  • (NotImplementedError)


19
20
21
# File 'app/models/renalware/patients/ingestion/command.rb', line 19

def call
  raise NotImplementedError
end