Class: Jsapi::Meta::Contact
- Inherits:
-
Base::Model
- Object
- Base::Model
- Jsapi::Meta::Contact
- Includes:
- OpenAPI::Extensions
- Defined in:
- lib/jsapi/meta/contact.rb
Overview
Specifies a contact object.
Constant Summary
Constants included from Base::Attributes
Base::Attributes::DEFAULT_ARRAY, Base::Attributes::DEFAULT_HASH
Instance Method Summary collapse
-
#email ⇒ Object
:attr: email The email address of the contact.
-
#name ⇒ Object
:attr: name The name of the contact.
-
#to_openapi ⇒ Object
Returns a hash representing the OpenAPI contact object.
-
#url ⇒ Object
:attr: url The URL of the contact.
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
#email ⇒ Object
:attr: email The email address of the contact.
12 |
# File 'lib/jsapi/meta/contact.rb', line 12 attribute :email, String |
#name ⇒ Object
:attr: name The name of the contact.
17 |
# File 'lib/jsapi/meta/contact.rb', line 17 attribute :name, String |
#to_openapi ⇒ Object
Returns a hash representing the OpenAPI contact object.
25 26 27 |
# File 'lib/jsapi/meta/contact.rb', line 25 def to_openapi(*) with_openapi_extensions(name: name, url: url, email: email) end |
#url ⇒ Object
:attr: url The URL of the contact.
22 |
# File 'lib/jsapi/meta/contact.rb', line 22 attribute :url, String |