Class: LaunchDarkly::Interfaces::DataSystem::Basis

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

Overview

Basis represents the initial payload of data that a data source can provide.

This type is not stable, and not subject to any backwards compatibility guarantees or semantic versioning. It is not suitable for production usage.

Do not use it. You have been warned.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(change_set:, persist:, environment_id: nil) ⇒ Basis

Returns a new instance of Basis.

Parameters:

  • change_set (ChangeSet)

    The change set

  • persist (Boolean)

    Whether to persist

  • environment_id (String, nil) (defaults to: nil)

    The environment ID



310
311
312
313
314
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 310

def initialize(change_set:, persist:, environment_id: nil)
  @change_set = change_set
  @persist = persist
  @environment_id = environment_id
end

Instance Attribute Details

#change_setChangeSet (readonly)

Returns The change set.

Returns:



297
298
299
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 297

def change_set
  @change_set
end

#environment_idString? (readonly)

Returns The environment ID.

Returns:

  • (String, nil)

    The environment ID



303
304
305
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 303

def environment_id
  @environment_id
end

#persistBoolean (readonly)

Returns Whether to persist.

Returns:

  • (Boolean)

    Whether to persist



300
301
302
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 300

def persist
  @persist
end