Class: AppleNews::Component::Base
- Inherits:
-
Object
- Object
- AppleNews::Component::Base
show all
- Includes:
- Properties
- Defined in:
- lib/apple-news/components/base.rb
Direct Known Subclasses
Author, BannerAdvertisement, Body, Byline, Caption, Container, Divider, EmbedWebVideo, Figure, Gallery, Heading, Illustrator, Instagram, Intro, Logo, MediumRectangleAdvertisement, Mosaic, Music, Photo, Photographer, Portrait, Pullquote, Quote, Title, Tweet, Video
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Properties
#initialize
Class Method Details
.role(val = nil) ⇒ Object
8
9
10
|
# File 'lib/apple-news/components/base.rb', line 8
def self.role(val = nil)
val.nil? ? _required_property_map[:role] : required_property(:role, val)
end
|
Instance Method Details
#role ⇒ Object
12
13
14
|
# File 'lib/apple-news/components/base.rb', line 12
def role
self.class.role
end
|