Class: Yast::DiscoverRegistrationServicesClient

Inherits:
Client
  • Object
show all
Includes:
Logger
Defined in:
src/clients/discover_registration_services.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDiscoverRegistrationServicesClient


15
16
17
# File 'src/clients/discover_registration_services.rb', line 15

def initialize
  @services = []
end

Instance Attribute Details

#servicesArray<SlpServiceClass::Service> (readonly)


13
14
15
# File 'src/clients/discover_registration_services.rb', line 13

def services
  @services
end

Instance Method Details

#mainObject


19
20
21
22
23
# File 'src/clients/discover_registration_services.rb', line 19

def main
  textdomain "registration"
  @services = ::Registration::UrlHelpers.slp_discovery_feedback
  services.empty? ? nil : select_registration_service
end