Class: ApiSketch::Model::Header
- Defined in:
- lib/api_sketch/model/header.rb
Instance Attribute Summary collapse
-
#example ⇒ Object
Returns the value of attribute example.
-
#required ⇒ Object
Returns the value of attribute required.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from ApiSketch::Model::Base
Instance Attribute Details
#example ⇒ Object
Returns the value of attribute example.
2 3 4 |
# File 'lib/api_sketch/model/header.rb', line 2 def example @example end |
#required ⇒ Object
Returns the value of attribute required.
2 3 4 |
# File 'lib/api_sketch/model/header.rb', line 2 def required @required end |
#value ⇒ Object
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_value ⇒ Object
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 |