Class: LibyearRb::Spec
- Inherits:
-
Data
- Object
- Data
- LibyearRb::Spec
- Defined in:
- lib/libyear_rb/models.rb
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#direct ⇒ Object
readonly
Returns the value of attribute direct.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(name:, version:, dependencies: [], direct: false) ⇒ Spec
constructor
A new instance of Spec.
Constructor Details
#initialize(name:, version:, dependencies: [], direct: false) ⇒ Spec
Returns a new instance of Spec.
7 8 9 |
# File 'lib/libyear_rb/models.rb', line 7 def initialize(name:, version:, dependencies: [], direct: false) super end |
Instance Attribute Details
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies
6 7 8 |
# File 'lib/libyear_rb/models.rb', line 6 def dependencies @dependencies end |
#direct ⇒ Object (readonly)
Returns the value of attribute direct
6 7 8 |
# File 'lib/libyear_rb/models.rb', line 6 def direct @direct end |
#name ⇒ Object (readonly)
Returns the value of attribute name
6 7 8 |
# File 'lib/libyear_rb/models.rb', line 6 def name @name end |
#version ⇒ Object (readonly)
Returns the value of attribute version
6 7 8 |
# File 'lib/libyear_rb/models.rb', line 6 def version @version end |