Class: OasRails::Spec::Tag
- Inherits:
-
Object
- Object
- OasRails::Spec::Tag
- Includes:
- Specable
- Defined in:
- lib/oas_rails/spec/tag.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, description:) ⇒ Tag
constructor
A new instance of Tag.
- #oas_fields ⇒ Object
Methods included from Specable
Constructor Details
#initialize(name:, description:) ⇒ Tag
Returns a new instance of Tag.
8 9 10 11 |
# File 'lib/oas_rails/spec/tag.rb', line 8 def initialize(name:, description:) @name = name.titleize @description = description end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/oas_rails/spec/tag.rb', line 6 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/oas_rails/spec/tag.rb', line 6 def name @name end |
Instance Method Details
#oas_fields ⇒ Object
13 14 15 |
# File 'lib/oas_rails/spec/tag.rb', line 13 def oas_fields [:name, :description] end |