Class: Gitlab::GrapeOpenapi::Models::Info
- Inherits:
-
Object
- Object
- Gitlab::GrapeOpenapi::Models::Info
- Defined in:
- lib/gitlab/grape_openapi/models/info.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#license ⇒ Object
Returns the value of attribute license.
-
#terms_of_service ⇒ Object
Returns the value of attribute terms_of_service.
-
#title ⇒ Object
Returns the value of attribute title.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(**options) ⇒ Info
constructor
A new instance of Info.
- #to_h ⇒ Object
Constructor Details
#initialize(**options) ⇒ Info
Returns a new instance of Info.
9 10 11 12 13 14 15 |
# File 'lib/gitlab/grape_openapi/models/info.rb', line 9 def initialize(**) @title = [:title] @description = [:description] @terms_of_service = [:terms_of_service] @version = [:version] @license = [:license] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/gitlab/grape_openapi/models/info.rb', line 7 def description @description end |
#license ⇒ Object
Returns the value of attribute license.
7 8 9 |
# File 'lib/gitlab/grape_openapi/models/info.rb', line 7 def license @license end |
#terms_of_service ⇒ Object
Returns the value of attribute terms_of_service.
7 8 9 |
# File 'lib/gitlab/grape_openapi/models/info.rb', line 7 def terms_of_service @terms_of_service end |
#title ⇒ Object
Returns the value of attribute title.
7 8 9 |
# File 'lib/gitlab/grape_openapi/models/info.rb', line 7 def title @title end |
#version ⇒ Object
Returns the value of attribute version.
7 8 9 |
# File 'lib/gitlab/grape_openapi/models/info.rb', line 7 def version @version end |
Instance Method Details
#to_h ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/gitlab/grape_openapi/models/info.rb', line 17 def to_h { title: title, description: description, termsOfService: terms_of_service, version: version, license: license }.compact end |