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