Class: ArticleJSON::Export::AppleNews::Elements::TextBox

Inherits:
Base
  • Object
show all
Includes:
Common::HTML::Elements::TextBox
Defined in:
lib/article_json/export/apple_news/elements/text_box.rb

Instance Method Summary collapse

Methods included from Common::HTML::Elements::Shared::Float

#floating_class

Methods inherited from Base

namespace

Methods included from Common::Elements::Base

included, #initialize

Instance Method Details

#exportHash

List

Returns:

  • (Hash)


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

def export
  {
    role: 'container',
    layout: 'textBoxLayout',
    style: 'textBoxStyle',
    components: map_styles(elements),
  }
end