Class: ArticleJSON::Export::AppleNews::Elements::Heading

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

Instance Method Summary collapse

Methods inherited from Base

namespace

Methods included from Common::Elements::Base

included, #initialize

Instance Method Details

#exportHash

Headline

Returns:

  • (Hash)


8
9
10
11
12
13
14
15
# File 'lib/article_json/export/apple_news/elements/heading.rb', line 8

def export
  {
    role: role,
    text: @element.content,
    layout: 'titleLayout',
    textStyle: 'defaultTitle',
  }
end