class ContentfulConverter::Nodes::Embed

Constants

EMBED_VALUES

Public Instance Methods

needs_p_wrapping?() click to toggle source
# File lib/contentful_converter/nodes/embed.rb, line 13
def needs_p_wrapping?
  false
end

Private Instance Methods

options() click to toggle source
# File lib/contentful_converter/nodes/embed.rb, line 23
def options
  hyperlink_entry_option(type_value.to_s.capitalize)
end
type() click to toggle source
# File lib/contentful_converter/nodes/embed.rb, line 19
def type
  EMBED_VALUES[type_value.downcase.to_sym] || raise('Incorrect embed type')
end
type_value() click to toggle source
# File lib/contentful_converter/nodes/embed.rb, line 27
def type_value
  nokogiri_node[:type] || :asset
end