Class: AppleNews::Component::BannerAdvertisement

Inherits:
Base
  • Object
show all
Defined in:
lib/apple-news/components/banner_advertisement.rb

Instance Method Summary collapse

Methods inherited from Base

role, #role

Methods included from Properties

#initialize, #load_properties

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


7
8
9
10
11
# File 'lib/apple-news/components/banner_advertisement.rb', line 7

def valid?
  super && [
    'any', 'standard', 'double_height', 'large'
  ].include?(banner_type)
end