Sha256: ed0be25b53d93ede5cfbc9e3e613d607901e3695b72135631a6de4e83755b513

Contents?: true

Size: 781 Bytes

Versions: 13

Compression:

Stored size: 781 Bytes

Contents

module AppleNews
  class Document
    include Properties

    attr_accessor :id

    required_properties :identifier, :title
    required_property :layout, nil, Layout
    required_property :components, [], Component, :factory
    required_property :component_text_styles, {}, Style::ComponentText

    required_property :version, "1.1"
    required_property :language, "en"

    optional_property :advertising_settings, nil, Property::AdvertisingSettings
    optional_property :metadata, nil, Metadata
    optional_property :document_style, nil, Style::Document
    optional_property :text_styles, {}, Style::Text
    optional_property :component_layouts, {}, ComponentLayout
    optional_property :component_styles, {}, Style::Component
    optional_property :subtitle
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
apple-news-0.5.1 lib/apple-news/document.rb
apple-news-0.5.0 lib/apple-news/document.rb
apple-news-0.4.2 lib/apple-news/document.rb
apple-news-0.4.1 lib/apple-news/document.rb
apple-news-0.4.0 lib/apple-news/document.rb
apple-news-0.3.1 lib/apple-news/document.rb
apple-news-0.3.0 lib/apple-news/document.rb
apple-news-0.2.5 lib/apple-news/document.rb
apple-news-0.2.4 lib/apple-news/document.rb
apple-news-0.2.3 lib/apple-news/document.rb
apple-news-0.2.2 lib/apple-news/document.rb
apple-news-0.2.1 lib/apple-news/document.rb
apple-news-0.2.0 lib/apple-news/document.rb