Class: Psenv::Parameter
- Inherits:
-
Object
- Object
- Psenv::Parameter
- Defined in:
- lib/psenv/retriever.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(parameter) ⇒ Parameter
constructor
A new instance of Parameter.
Constructor Details
#initialize(parameter) ⇒ Parameter
Returns a new instance of Parameter.
9 10 11 12 13 14 |
# File 'lib/psenv/retriever.rb', line 9 def initialize(parameter) @name = parameter[:name].split("/").last @value = parameter[:value] @type = parameter[:type] @version = parameter[:version] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/psenv/retriever.rb', line 7 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/psenv/retriever.rb', line 7 def value @value end |