Class: Cloudrider::Protosite::Protopage
- Inherits:
-
Object
- Object
- Cloudrider::Protosite::Protopage
- Defined in:
- lib/cloudrider/protosite.rb
Constant Summary collapse
- KnownComponents =
[ "hero-splash", "cookie-splash", "introductory-lobby", "products-showcase", "table-booths", "products-catalog", "search-and-filter", "offers-overview" ]
Instance Attribute Summary collapse
-
#components ⇒ Object
Returns the value of attribute components.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name: name, components: components) ⇒ Protopage
constructor
A new instance of Protopage.
Constructor Details
#initialize(name: name, components: components) ⇒ Protopage
Returns a new instance of Protopage.
62 63 64 |
# File 'lib/cloudrider/protosite.rb', line 62 def initialize(name: name, components: components) @name, @components = name, components.to_a end |
Instance Attribute Details
#components ⇒ Object
Returns the value of attribute components.
51 52 53 |
# File 'lib/cloudrider/protosite.rb', line 51 def components @components end |
#name ⇒ Object
Returns the value of attribute name.
51 52 53 |
# File 'lib/cloudrider/protosite.rb', line 51 def name @name end |