Class: ArticleJSON::Export::AppleNews::Elements::Image

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

Instance Method Summary collapse

Methods inherited from Base

namespace

Methods included from Common::Elements::Base

included, #initialize

Instance Method Details

#exportHash+

Image | Image, Caption

Returns:

  • (Hash, Array<Hash>)


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

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