Contact
Contact information block.
Used within the contact block in API::Info.
Instance Methods
#email
#email(value = nil)
The contact email.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
value | String, nil | nil | The email. |
Returns
String, nil
Example
ruby
email 'support@example.com'
contact.email # => "support@example.com"#name
#name(value = nil)
The contact name.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
value | String, nil | nil | The name. |
Returns
String, nil
Example
ruby
name 'API Support'
contact.name # => "API Support"#url
#url(value = nil)
The contact URL.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
value | String, nil | nil | The URL. |
Returns
String, nil
Example
ruby
url 'https://example.com/support'
contact.url # => "https://example.com/support"