Class: Apiwork::API::Info::Contact
- Inherits:
-
Object
- Object
- Apiwork::API::Info::Contact
- Defined in:
- lib/apiwork/api/info/contact.rb
Overview
Contact information block.
Used within the ‘contact` block in Apiwork::API::Info.
Instance Method Summary collapse
-
#email(value = nil) ⇒ String?
The contact email.
-
#initialize ⇒ Contact
constructor
A new instance of Contact.
-
#name(value = nil) ⇒ String?
The contact name.
-
#url(value = nil) ⇒ String?
The contact URL.
Constructor Details
#initialize ⇒ Contact
Returns a new instance of Contact.
11 12 13 14 15 |
# File 'lib/apiwork/api/info/contact.rb', line 11 def initialize @email = nil @name = nil @url = nil end |
Instance Method Details
#email(value = nil) ⇒ String?
The contact email.
43 44 45 46 47 |
# File 'lib/apiwork/api/info/contact.rb', line 43 def email(value = nil) return @email if value.nil? @email = value end |
#name(value = nil) ⇒ String?
The contact name.
27 28 29 30 31 |
# File 'lib/apiwork/api/info/contact.rb', line 27 def name(value = nil) return @name if value.nil? @name = value end |
#url(value = nil) ⇒ String?
The contact URL.
59 60 61 62 63 |
# File 'lib/apiwork/api/info/contact.rb', line 59 def url(value = nil) return @url if value.nil? @url = value end |