Class: ArticleJSON::Export::AppleNews::Elements::Embed

Inherits:
Base
  • Object
show all
Defined in:
lib/article_json/export/apple_news/elements/embed.rb

Instance Method Summary collapse

Methods inherited from Base

namespace

Methods included from Common::Elements::Base

included, #initialize

Instance Method Details

#exportHash+

Embed| Embed, Caption

Returns:

  • (Hash, Array<Hash>)


8
9
10
# File 'lib/article_json/export/apple_news/elements/embed.rb', line 8

def export
  caption_text.nil? ? embed : [embed, caption]
end