Class: Renalware::Patients::Ingestion::MessageMapper

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

Overview

Responsible for mapping attributes from a message to attributes to domain models.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ MessageMapper

Returns a new instance of MessageMapper.



10
11
12
# File 'app/models/renalware/patients/ingestion/message_mapper.rb', line 10

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



14
15
16
# File 'app/models/renalware/patients/ingestion/message_mapper.rb', line 14

def message
  @message
end

Instance Method Details

#fetchObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'app/models/renalware/patients/ingestion/message_mapper.rb', line 16

def fetch
  raise NotImplementedError
end