Class: Phronomy::Agent::ContextImporter::ImportedRecord

Inherits:
Data
  • Object
show all
Defined in:
lib/phronomy/agent/context_importer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#channelObject (readonly)

Returns the value of attribute channel

Returns:

  • (Object)

    the current value of channel



6
7
8
# File 'lib/phronomy/agent/context_importer.rb', line 6

def channel
  @channel
end

#contentObject (readonly)

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



6
7
8
# File 'lib/phronomy/agent/context_importer.rb', line 6

def content
  @content
end

#content_formatObject (readonly)

Returns the value of attribute content_format

Returns:

  • (Object)

    the current value of content_format



6
7
8
# File 'lib/phronomy/agent/context_importer.rb', line 6

def content_format
  @content_format
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



6
7
8
# File 'lib/phronomy/agent/context_importer.rb', line 6

def kind
  @kind
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



6
7
8
# File 'lib/phronomy/agent/context_importer.rb', line 6

def 
  @metadata
end

#roleObject (readonly)

Returns the value of attribute role

Returns:

  • (Object)

    the current value of role



6
7
8
# File 'lib/phronomy/agent/context_importer.rb', line 6

def role
  @role
end