Module: DIDKit::Services

Included in:
Document, PLCOperation
Defined in:
lib/didkit/services.rb

Instance Method Summary collapse

Instance Method Details

#get_service(key, type) ⇒ Object



3
4
5
# File 'lib/didkit/services.rb', line 3

def get_service(key, type)
  @services&.detect { |s| s.key == key && s.type == type }
end

#labeler_endpointObject



11
12
13
# File 'lib/didkit/services.rb', line 11

def labeler_endpoint
  @labeler_endpoint ||= get_service('atproto_labeler', 'AtprotoLabeler')&.endpoint
end

#pds_endpointObject



7
8
9
# File 'lib/didkit/services.rb', line 7

def pds_endpoint
  @pds_endpoint ||= get_service('atproto_pds', 'AtprotoPersonalDataServer')&.endpoint
end