Class: Icss::Meta::License
Class Method Summary
collapse
Instance Method Summary
collapse
included, #register
included, #tree_merge!
included, #to_tuple
#attr_set?, included, #receive!, #to_zaml
#merge_from_file!
#[], #[]=, #attributes, #delete, included, #keys
Class Method Details
.catalog_sections ⇒ Object
23
24
25
|
# File 'lib/icss/protocol/license.rb', line 23
def self.catalog_sections
['licenses']
end
|
Instance Method Details
14
15
16
|
# File 'lib/icss/protocol/license.rb', line 14
def fullname
license_id
end
|
#name ⇒ Object
Also known as:
basename
18
19
20
|
# File 'lib/icss/protocol/license.rb', line 18
def name
license_id.split('.').last
end
|
27
28
29
30
31
32
33
34
|
# 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
|
36
|
# File 'lib/icss/protocol/license.rb', line 36
def to_json() to_hash.to_json ; end
|