Class: Nexmo::OAS::Renderer::Presenters::Navigation
- Inherits:
-
Object
- Object
- Nexmo::OAS::Renderer::Presenters::Navigation
- Includes:
- Helpers::Navigation
- Defined in:
- lib/nexmo/oas/renderer/presenters/navigation.rb
Constant Summary
Constants included from Helpers::Navigation
Helpers::Navigation::HEADING_TAG_DEPTHS
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(content:, title: nil) ⇒ Navigation
constructor
A new instance of Navigation.
- #navigation_from_content ⇒ Object
Constructor Details
#initialize(content:, title: nil) ⇒ Navigation
14 15 16 17 |
# File 'lib/nexmo/oas/renderer/presenters/navigation.rb', line 14 def initialize(content:, title: nil) @content = content @title = title end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
12 13 14 |
# File 'lib/nexmo/oas/renderer/presenters/navigation.rb', line 12 def content @content end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
12 13 14 |
# File 'lib/nexmo/oas/renderer/presenters/navigation.rb', line 12 def title @title end |
Instance Method Details
#navigation_from_content ⇒ Object
19 20 21 |
# File 'lib/nexmo/oas/renderer/presenters/navigation.rb', line 19 def super(content: @content, title: @title) end |