Class: ApiExplorer::Header

Inherits:
Object
  • Object
show all
Defined in:
lib/api_explorer/header.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  self.name = name.to_s
  self.source = options[:source] || {}
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/api_explorer/header.rb', line 8

def name
  @name
end

#sourceObject

Returns the value of attribute source.



8
9
10
# File 'lib/api_explorer/header.rb', line 8

def source
  @source
end