Class: K8y::GroupVersion
- Inherits:
-
Object
- Object
- K8y::GroupVersion
- Defined in:
- lib/k8y/group_version.rb
Instance Attribute Summary collapse
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(group:, version:) ⇒ GroupVersion
constructor
A new instance of GroupVersion.
- #to_method_name ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(group:, version:) ⇒ GroupVersion
Returns a new instance of GroupVersion.
7 8 9 10 |
# File 'lib/k8y/group_version.rb', line 7 def initialize(group:, version:) @group = group @version = version end |
Instance Attribute Details
#group ⇒ Object (readonly)
Returns the value of attribute group.
5 6 7 |
# File 'lib/k8y/group_version.rb', line 5 def group @group end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/k8y/group_version.rb', line 5 def version @version end |
Instance Method Details
#to_method_name ⇒ Object
16 17 18 |
# File 'lib/k8y/group_version.rb', line 16 def to_method_name "#{group}_#{version}" end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/k8y/group_version.rb', line 12 def to_s "#{group}/#{version}" end |