Class: Phronomy::Agent::ContextImporter::ImportedRecord
- Inherits:
-
Data
- Object
- Data
- Phronomy::Agent::ContextImporter::ImportedRecord
- Defined in:
- lib/phronomy/agent/context_importer.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#content_format ⇒ Object
readonly
Returns the value of attribute content_format.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(**values) ⇒ ImportedRecord
constructor
A new instance of ImportedRecord.
Constructor Details
#initialize(**values) ⇒ ImportedRecord
Returns a new instance of ImportedRecord.
9 10 11 12 13 14 15 |
# File 'lib/phronomy/agent/context_importer.rb', line 9 def initialize(**values) super(**values.merge( content: Immutable.copy(values[:content]), metadata: Immutable.copy(values[:metadata] || {}) )) freeze end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel
6 7 8 |
# File 'lib/phronomy/agent/context_importer.rb', line 6 def channel @channel end |
#content ⇒ Object (readonly)
Returns the value of attribute content
6 7 8 |
# File 'lib/phronomy/agent/context_importer.rb', line 6 def content @content end |
#content_format ⇒ Object (readonly)
Returns the value of attribute content_format
6 7 8 |
# File 'lib/phronomy/agent/context_importer.rb', line 6 def content_format @content_format end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
6 7 8 |
# File 'lib/phronomy/agent/context_importer.rb', line 6 def kind @kind end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
6 7 8 |
# File 'lib/phronomy/agent/context_importer.rb', line 6 def @metadata end |
#role ⇒ Object (readonly)
Returns the value of attribute role
6 7 8 |
# File 'lib/phronomy/agent/context_importer.rb', line 6 def role @role end |