Class: FeatureHub::Sdk::EdgeService

Inherits:
Object
  • Object
show all
Defined in:
lib/feature_hub/sdk/feature_hub_config.rb,
sig/feature_hub/featurehub.rbs

Overview

interface style definition for all edge services

Direct Known Subclasses

PollingEdgeService, StreamingEdgeService

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repository, api_keys, edge_url, logger = nil) ⇒ EdgeService

Returns a new instance of EdgeService.

Parameters:



9
10
11
12
13
14
# File 'lib/feature_hub/sdk/feature_hub_config.rb', line 9

def initialize(repository, api_keys, edge_url, logger = nil)
  @repository = repository
  @api_keys = api_keys
  @edge_url = edge_url
  @logger = logger
end

Instance Attribute Details

#repositoryInternalFeatureRepository? (readonly)

Returns the value of attribute repository.

Returns:



7
8
9
# File 'lib/feature_hub/sdk/feature_hub_config.rb', line 7

def repository
  @repository
end

Instance Method Details

#closevoid

This method returns an undefined value.

abstract



23
# File 'lib/feature_hub/sdk/feature_hub_config.rb', line 23

def close; end

#context_change(new_header) ⇒ void

This method returns an undefined value.

abstract

Parameters:

  • new_header: (String, nil)


20
# File 'lib/feature_hub/sdk/feature_hub_config.rb', line 20

def context_change(new_header) end

#pollvoid

This method returns an undefined value.

abstract



17
# File 'lib/feature_hub/sdk/feature_hub_config.rb', line 17

def poll; end