Class: Registrar::Provider::OpenSRS::TldData

Inherits:
Object
  • Object
show all
Defined in:
lib/registrar/provider/opensrs/tld_data.rb

Constant Summary collapse

TLDS =
{
  ['us'] => ->(options)do
    us_options = options.extended_attributes.select do |attribute|
      attribute.tld == 'us'
    end
    TldDataUs.new(us_options)
  end
}

Class Method Summary collapse

Class Method Details

.build_with(options) ⇒ Object



17
18
19
# File 'lib/registrar/provider/opensrs/tld_data.rb', line 17

def build_with(options)
  TLDS[tld(options)].call(options)
end