Class: Parse::Core::EmbedManaged::EmbedDirective

Inherits:
Struct
  • Object
show all
Defined in:
lib/parse/model/core/embed_managed.rb

Overview

Frozen value-object capturing one embed declaration. Stored on the owning class under embed_directives[into] and passed to recompute_embedding! from the per-class before_save callback.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#digest_fieldObject

Returns the value of attribute digest_field

Returns:

  • (Object)

    the current value of digest_field



95
96
97
# File 'lib/parse/model/core/embed_managed.rb', line 95

def digest_field
  @digest_field
end

#input_typeObject

Returns the value of attribute input_type

Returns:

  • (Object)

    the current value of input_type



95
96
97
# File 'lib/parse/model/core/embed_managed.rb', line 95

def input_type
  @input_type
end

#intoObject

Returns the value of attribute into

Returns:

  • (Object)

    the current value of into



95
96
97
# File 'lib/parse/model/core/embed_managed.rb', line 95

def into
  @into
end

#provider_nameObject

Returns the value of attribute provider_name

Returns:

  • (Object)

    the current value of provider_name



95
96
97
# File 'lib/parse/model/core/embed_managed.rb', line 95

def provider_name
  @provider_name
end

#sourcesObject

Returns the value of attribute sources

Returns:

  • (Object)

    the current value of sources



95
96
97
# File 'lib/parse/model/core/embed_managed.rb', line 95

def sources
  @sources
end

Instance Method Details

#freezeObject



99
100
101
102
# File 'lib/parse/model/core/embed_managed.rb', line 99

def freeze
  sources.freeze
  super
end