Class: License
- Inherits:
-
ArchDefObject
- Object
- ArchDefObject
- License
- Defined in:
- lib/arch_obj_models/obj.rb
Overview
License information
Instance Method Summary collapse
-
#name ⇒ String
License name.
-
#text ⇒ String
Text of the license.
- #url ⇒ String?
Constructor Details
This class inherits a constructor from ArchDefObject
Instance Method Details
#name ⇒ String
Returns License name.
227 |
# File 'lib/arch_obj_models/obj.rb', line 227 def name = @data["name"] |
#text ⇒ String
Returns Text of the license.
234 235 236 237 238 239 240 |
# File 'lib/arch_obj_models/obj.rb', line 234 def text if !@data["text_url"].nil? Net::HTTP.get(URI(@data["text_url"])) else @data["text"] end end |
#url ⇒ String?
231 |
# File 'lib/arch_obj_models/obj.rb', line 231 def url = @data["url"] |