Class: ApiExplorer::Header
- Inherits:
-
Object
- Object
- ApiExplorer::Header
- Defined in:
- lib/api_explorer/header.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Header
constructor
A new instance of Header.
Constructor Details
#initialize(name, options = {}) ⇒ Header
Returns a new instance of Header.
3 4 5 6 |
# File 'lib/api_explorer/header.rb', line 3 def initialize(name, = {}) self.name = name.to_s self.source = [:source] || {} end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/api_explorer/header.rb', line 8 def name @name end |
#source ⇒ Object
Returns the value of attribute source.
8 9 10 |
# File 'lib/api_explorer/header.rb', line 8 def source @source end |