Class: Nexmo::OAS::Renderer::Presenters::Navigation

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

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



12
13
14
# File 'lib/nexmo/oas/renderer/presenters/navigation.rb', line 12

def content
  @content
end

#titleObject (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



19
20
21
# File 'lib/nexmo/oas/renderer/presenters/navigation.rb', line 19

def navigation_from_content
  super(content: @content, title: @title)
end