class Icss::Meta::License

Public Class Methods

catalog_sections() click to toggle source
# File lib/icss/protocol/license.rb, line 23
def self.catalog_sections
  ['licenses']
end

Public Instance Methods

basename()
Alias for: name
fullname() click to toggle source
# File lib/icss/protocol/license.rb, line 14
def fullname
  license_id
end
name() click to toggle source
# File lib/icss/protocol/license.rb, line 18
def name
  license_id.split('.').last
end
Also aliased as: basename
to_hash() click to toggle source
# File lib/icss/protocol/license.rb, line 27
def to_hash()
  { :license_id => license_id,
    :title => title,
    :url => url,
    :description => description,
    :summary => summary,
    :article_body => article_body }
end
to_json() click to toggle source
# File lib/icss/protocol/license.rb, line 36
def to_json() to_hash.to_json ; end