Class: License

Inherits:
ArchDefObject show all
Defined in:
lib/arch_obj_models/obj.rb

Overview

License information

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from ArchDefObject

Instance Method Details

#nameString

Returns License name.

Returns:

  • (String)

    License name



227
# File 'lib/arch_obj_models/obj.rb', line 227

def name = @data["name"]

#textString

Returns Text of the license.

Returns:

  • (String)

    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

#urlString?

Returns:

  • (String)

    License website

  • (nil)

    if there is no website for the license



231
# File 'lib/arch_obj_models/obj.rb', line 231

def url = @data["url"]