Class: Jsapi::Meta::Contact

Inherits:
Jsapi::Model::Base show all
Includes:
OpenAPI::Extensions
Defined in:
lib/jsapi/meta/contact.rb

Overview

Specifies a contact.

Instance Method Summary collapse

Methods included from OpenAPI::Extensions

included

Methods inherited from Jsapi::Model::Base

#==, #errors, #initialize, #inspect, model_name, #respond_to_missing?

Constructor Details

This class inherits a constructor from Jsapi::Model::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Jsapi::Model::Base

Instance Method Details

#emailObject

:attr: email The email address of the contact.



12
# File 'lib/jsapi/meta/contact.rb', line 12

attribute :email, String

#nameObject

:attr: name The name of the contact.



17
# File 'lib/jsapi/meta/contact.rb', line 17

attribute :name, String

#to_openapiObject

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

#urlObject

:attr: url The URL of the contact.



22
# File 'lib/jsapi/meta/contact.rb', line 22

attribute :url, String