Class: LaunchDarkly::Interfaces::Plugins::SdkMetadata

Inherits:
Object
  • Object
show all
Defined in:
lib/ldclient-rb/interfaces/plugins.rb

Overview

Metadata about the SDK.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameString (readonly)

The id of the SDK (e.g., "ruby-server-sdk")

Returns:

  • (String)


10
11
12
# File 'lib/ldclient-rb/interfaces/plugins.rb', line 10

def name
  @name
end

#versionString (readonly)

The version of the SDK

Returns:

  • (String)


14
15
16
# File 'lib/ldclient-rb/interfaces/plugins.rb', line 14

def version
  @version
end

#wrapper_nameString? (readonly)

The wrapper name if this SDK is a wrapper

Returns:

  • (String, nil)


18
19
20
# File 'lib/ldclient-rb/interfaces/plugins.rb', line 18

def wrapper_name
  @wrapper_name
end

#wrapper_versionString? (readonly)

The wrapper version if this SDK is a wrapper

Returns:

  • (String, nil)


22
23
24
# File 'lib/ldclient-rb/interfaces/plugins.rb', line 22

def wrapper_version
  @wrapper_version
end