Class: ApiSketch::Model::Header

Inherits:
Base
  • Object
show all
Defined in:
lib/api_sketch/model/header.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#description, #name

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from ApiSketch::Model::Base

Instance Attribute Details

#exampleObject

Returns the value of attribute example.



2
3
4
# File 'lib/api_sketch/model/header.rb', line 2

def example
  @example
end

#requiredObject

Returns the value of attribute required.



2
3
4
# File 'lib/api_sketch/model/header.rb', line 2

def required
  @required
end

#valueObject

Returns the value of attribute value.



2
3
4
# File 'lib/api_sketch/model/header.rb', line 2

def value
  @value
end

Instance Method Details

#example_valueObject



4
5
6
# File 'lib/api_sketch/model/header.rb', line 4

def example_value
  self.example.respond_to?(:call) ? self.example.call : self.example
end