Class: PortfolioClass
- Inherits:
-
ArchDefObject
- Object
- ArchDefObject
- PortfolioClass
- Defined in:
- lib/arch_obj_models/portfolio.rb
Overview
Holds information from Portfolio class YAML file (certificate class or profile class). The inherited “data” member is the database of extensions, instructions, CSRs, etc.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#arch_def ⇒ ArchDef
readonly
The defining ArchDef.
Instance Method Summary collapse
- #description ⇒ Object
-
#eql?(other) ⇒ Boolean
Returns true if other is the same class (not a derived class) and has the same name.
-
#initialize(data, arch_def) ⇒ PortfolioClass
constructor
A new instance of PortfolioClass.
- #introduction ⇒ Object
- #naming_scheme ⇒ Object
Constructor Details
#initialize(data, arch_def) ⇒ PortfolioClass
Returns a new instance of PortfolioClass.
27 28 29 30 |
# File 'lib/arch_obj_models/portfolio.rb', line 27 def initialize(data, arch_def) super(data) @arch_def = arch_def end |
Instance Attribute Details
#arch_def ⇒ ArchDef (readonly)
Returns The defining ArchDef.
23 24 25 |
# File 'lib/arch_obj_models/portfolio.rb', line 23 def arch_def @arch_def end |
Instance Method Details
#description ⇒ Object
34 |
# File 'lib/arch_obj_models/portfolio.rb', line 34 def description = @data["description"] |
#eql?(other) ⇒ Boolean
Returns true if other is the same class (not a derived class) and has the same name.
37 38 39 |
# File 'lib/arch_obj_models/portfolio.rb', line 37 def eql?(other) other.instance_of?(self.class) && other.name == name end |
#introduction ⇒ Object
32 |
# File 'lib/arch_obj_models/portfolio.rb', line 32 def introduction = @data["introduction"] |
#naming_scheme ⇒ Object
33 |
# File 'lib/arch_obj_models/portfolio.rb', line 33 def naming_scheme = @data["naming_scheme"] |