Class: EmbeddableContent::SadEmbeddedTags
- Inherits:
-
Object
- Object
- EmbeddableContent::SadEmbeddedTags
- Defined in:
- app/services/embeddable_content/sad_embedded_tags.rb
Instance Attribute Summary collapse
-
#ed_node ⇒ Object
Returns the value of attribute ed_node.
-
#embedded_models ⇒ Object
Returns the value of attribute embedded_models.
-
#sad_related_records ⇒ Object
Returns the value of attribute sad_related_records.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(ed_node, embedded_models) ⇒ SadEmbeddedTags
constructor
A new instance of SadEmbeddedTags.
Constructor Details
#initialize(ed_node, embedded_models) ⇒ SadEmbeddedTags
Returns a new instance of SadEmbeddedTags.
5 6 7 8 9 |
# File 'app/services/embeddable_content/sad_embedded_tags.rb', line 5 def initialize(ed_node, ) @ed_node = ed_node @sad_related_records = SadRelatedRecords.new ed_node @embedded_models = end |
Instance Attribute Details
#ed_node ⇒ Object
Returns the value of attribute ed_node.
3 4 5 |
# File 'app/services/embeddable_content/sad_embedded_tags.rb', line 3 def ed_node @ed_node end |
#embedded_models ⇒ Object
Returns the value of attribute embedded_models.
3 4 5 |
# File 'app/services/embeddable_content/sad_embedded_tags.rb', line 3 def @embedded_models end |
#sad_related_records ⇒ Object
Returns the value of attribute sad_related_records.
3 4 5 |
# File 'app/services/embeddable_content/sad_embedded_tags.rb', line 3 def @sad_related_records end |
Instance Method Details
#each ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'app/services/embeddable_content/sad_embedded_tags.rb', line 11 def each @ed_node..each do |tag| tag.html_attrs.each do |attr| EmbeddedTags.new(tag, attr, ).each do |info| yield nil, nil, info end end end .each do |node, node_address, | .html_attrs.each do |attr| EmbeddedTags.new(, attr, ).each do |info| yield node, node_address, info end end end end |