Class: Stitches::CallingServiceClient

Inherits:
Struct
  • Object
show all
Defined in:
lib/stitches/calling_service_client.rb

Overview

Lightweight stand-in for ApiClient when the caller is identified by the X-StitchFix-Calling-Service header rather than an API key lookup. Implements the same interface (.name, .id, .key) so existing code that reads api_client.name continues to work.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/stitches/calling_service_client.rb', line 6

def name
  @name
end

Instance Method Details

#idObject



7
8
9
# File 'lib/stitches/calling_service_client.rb', line 7

def id
  nil
end

#keyObject



11
12
13
# File 'lib/stitches/calling_service_client.rb', line 11

def key
  nil
end