Class: Securenv::Parameter
- Inherits:
-
Object
- Object
- Securenv::Parameter
- Defined in:
- lib/securenv/parameter.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(name:, value:, version:) ⇒ Parameter
constructor
A new instance of Parameter.
- #var_name ⇒ Object
Constructor Details
#initialize(name:, value:, version:) ⇒ Parameter
Returns a new instance of Parameter.
7 8 9 10 11 |
# File 'lib/securenv/parameter.rb', line 7 def initialize(name:, value:, version:) @name = name @value = value @version = version end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/securenv/parameter.rb', line 3 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/securenv/parameter.rb', line 4 def value @value end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/securenv/parameter.rb', line 5 def version @version end |
Instance Method Details
#var_name ⇒ Object
13 14 15 |
# File 'lib/securenv/parameter.rb', line 13 def var_name name.split('/').last end |