Class: BELParser::Resource::ConceptScheme
- Inherits:
-
Object
- Object
- BELParser::Resource::ConceptScheme
- Includes:
- Dataset
- Defined in:
- lib/bel_parser/resource/concept_scheme.rb
Overview
ConceptScheme
Constant Summary
Constants included from Dataset
Dataset::ANNOTATION, Dataset::NAMESPACE
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#types ⇒ Object
readonly
Returns the value of attribute types.
Instance Method Summary collapse
-
#initialize(identifier, domain, prefix, name, types) ⇒ ConceptScheme
constructor
A new instance of ConceptScheme.
- #uri? ⇒ Boolean
- #url? ⇒ Boolean
Methods included from Dataset
#<=>, #==, #annotation_resource?, #hash, #namespace_resource?
Constructor Details
#initialize(identifier, domain, prefix, name, types) ⇒ ConceptScheme
Returns a new instance of ConceptScheme.
11 12 13 14 15 16 17 |
# File 'lib/bel_parser/resource/concept_scheme.rb', line 11 def initialize(identifier, domain, prefix, name, types) @identifier = identifier.to_s @domain = domain.to_s @keyword = prefix.to_s @name = name.to_s @types = convert_types(types.to_s) end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
9 10 11 |
# File 'lib/bel_parser/resource/concept_scheme.rb', line 9 def domain @domain end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
9 10 11 |
# File 'lib/bel_parser/resource/concept_scheme.rb', line 9 def identifier @identifier end |
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
9 10 11 |
# File 'lib/bel_parser/resource/concept_scheme.rb', line 9 def keyword @keyword end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/bel_parser/resource/concept_scheme.rb', line 9 def name @name end |
#types ⇒ Object (readonly)
Returns the value of attribute types.
9 10 11 |
# File 'lib/bel_parser/resource/concept_scheme.rb', line 9 def types @types end |
Instance Method Details
#uri? ⇒ Boolean
19 20 21 |
# File 'lib/bel_parser/resource/concept_scheme.rb', line 19 def uri? true end |
#url? ⇒ Boolean
23 24 25 |
# File 'lib/bel_parser/resource/concept_scheme.rb', line 23 def url? false end |