Class: Securenv::Parameter

Inherits:
Object
  • Object
show all
Defined in:
lib/securenv/parameter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/securenv/parameter.rb', line 3

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/securenv/parameter.rb', line 4

def value
  @value
end

#versionObject (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_nameObject



13
14
15
# File 'lib/securenv/parameter.rb', line 13

def var_name
  name.split('/').last
end