Class: AppleNews::Behavior::Base
- Inherits:
-
Object
- Object
- AppleNews::Behavior::Base
show all
- Includes:
- Properties
- Defined in:
- lib/apple-news/behaviors/base.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Properties
#initialize, #load_properties
Class Method Details
.type(val = nil) ⇒ Object
6
7
8
|
# File 'lib/apple-news/behaviors/base.rb', line 6
def self.type(val = nil)
val.nil? ? _required_property_map[:type][:default] : required_property(:type, val)
end
|
Instance Method Details
#type ⇒ Object
10
11
12
|
# File 'lib/apple-news/behaviors/base.rb', line 10
def type
self.class.type
end
|