Class: Pageflow::React::PageType

Inherits:
PageType
  • Object
show all
Defined in:
lib/pageflow/react/page_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, component_name) ⇒ PageType

Returns a new instance of PageType.



6
7
8
9
# File 'lib/pageflow/react/page_type.rb', line 6

def initialize(name, component_name)
  @name = name
  @component_name = component_name
end

Instance Attribute Details

#component_nameObject (readonly)

Returns the value of attribute component_name.



4
5
6
# File 'lib/pageflow/react/page_type.rb', line 4

def component_name
  @component_name
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/pageflow/react/page_type.rb', line 4

def name
  @name
end

Instance Method Details

#template_pathObject



11
12
13
# File 'lib/pageflow/react/page_type.rb', line 11

def template_path
  'pageflow/react/page'
end