Class: LaunchDarkly::Interfaces::Plugins::SdkMetadata
- Inherits:
-
Object
- Object
- LaunchDarkly::Interfaces::Plugins::SdkMetadata
- Defined in:
- lib/ldclient-rb/interfaces/plugins.rb
Overview
Metadata about the SDK.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The id of the SDK (e.g., "ruby-server-sdk").
-
#version ⇒ String
readonly
The version of the SDK.
-
#wrapper_name ⇒ String?
readonly
The wrapper name if this SDK is a wrapper.
-
#wrapper_version ⇒ String?
readonly
The wrapper version if this SDK is a wrapper.
Instance Method Summary collapse
-
#initialize(name:, version:, wrapper_name: nil, wrapper_version: nil) ⇒ SdkMetadata
constructor
A new instance of SdkMetadata.
Constructor Details
#initialize(name:, version:, wrapper_name: nil, wrapper_version: nil) ⇒ SdkMetadata
Returns a new instance of SdkMetadata.
24 25 26 27 28 29 |
# File 'lib/ldclient-rb/interfaces/plugins.rb', line 24 def initialize(name:, version:, wrapper_name: nil, wrapper_version: nil) @name = name @version = version @wrapper_name = wrapper_name @wrapper_version = wrapper_version end |
Instance Attribute Details
#name ⇒ String (readonly)
The id of the SDK (e.g., "ruby-server-sdk")
10 11 12 |
# File 'lib/ldclient-rb/interfaces/plugins.rb', line 10 def name @name end |
#version ⇒ String (readonly)
The version of the SDK
14 15 16 |
# File 'lib/ldclient-rb/interfaces/plugins.rb', line 14 def version @version end |
#wrapper_name ⇒ String? (readonly)
The wrapper name if this SDK is a wrapper
18 19 20 |
# File 'lib/ldclient-rb/interfaces/plugins.rb', line 18 def wrapper_name @wrapper_name end |
#wrapper_version ⇒ String? (readonly)
The wrapper version if this SDK is a wrapper
22 23 24 |
# File 'lib/ldclient-rb/interfaces/plugins.rb', line 22 def wrapper_version @wrapper_version end |