Class: Cloudrider::Protosite::Protopage

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#componentsObject

Returns the value of attribute components.



51
52
53
# File 'lib/cloudrider/protosite.rb', line 51

def components
  @components
end

#nameObject

Returns the value of attribute name.



51
52
53
# File 'lib/cloudrider/protosite.rb', line 51

def name
  @name
end