Class: Jsapi::Meta::License
- Inherits:
-
Base::Model
- Object
- Base::Model
- Jsapi::Meta::License
- Includes:
- OpenAPI::Extensions
- Defined in:
- lib/jsapi/meta/license.rb
Overview
Specifies a license object.
Constant Summary
Constants included from Base::Attributes
Base::Attributes::DEFAULT_ARRAY, Base::Attributes::DEFAULT_HASH
Instance Method Summary collapse
-
#name ⇒ Object
:attr: name The name of the license.
-
#to_openapi ⇒ Object
Returns a hash representing the OpenAPI license object.
-
#url ⇒ Object
:attr: url The URL of the license.
Methods included from OpenAPI::Extensions
#add_openapi_extension, #openapi_extensions, #openapi_extensions=
Methods inherited from Base::Model
#initialize, #inspect, #merge!, #reference?, #resolve
Methods included from Base::Attributes
Constructor Details
This class inherits a constructor from Jsapi::Meta::Base::Model
Instance Method Details
#name ⇒ Object
:attr: name The name of the license.
12 |
# File 'lib/jsapi/meta/license.rb', line 12 attribute :name, String |
#to_openapi ⇒ Object
Returns a hash representing the OpenAPI license object.
20 21 22 |
# File 'lib/jsapi/meta/license.rb', line 20 def to_openapi(*) with_openapi_extensions(name: name, url: url) end |
#url ⇒ Object
:attr: url The URL of the license.
17 |
# File 'lib/jsapi/meta/license.rb', line 17 attribute :url, String |