Module: DLDInternet::OpenSRS::API::Domain::MixIns::Get::GetDomain
- Included in:
- Get
- Defined in:
- lib/dldinternet/opensrs/api/domain/mixins/get/getdomain.rb
Instance Method Summary collapse
-
#GetDomainList(cookiep = nil, attr = 'domain_list') ⇒ Object
noinspection RubyUnnecessaryReturnValue.
-
#GetDomainListExt(cookiep = nil) ⇒ Object
noinspection RubyUnnecessaryReturnValue.
Instance Method Details
#GetDomainList(cookiep = nil, attr = 'domain_list') ⇒ Object
noinspection RubyUnnecessaryReturnValue
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/dldinternet/opensrs/api/domain/mixins/get/getdomain.rb', line 17 def GetDomainList(=nil, attr='domain_list') list = [] limit = 25 pn = 0 pgnos = nil page = getdomainpage(nil, || , nil, nil, limit) while page list += page[attr] pgnos ||= page['count'].to_i/limit if page['remainder'].eql?('1') && pn < pgnos pn += 1 page = getdomainpage(nil, || , nil, pn, limit) else page = nil end end list end |
#GetDomainListExt(cookiep = nil) ⇒ Object
noinspection RubyUnnecessaryReturnValue
12 13 14 |
# File 'lib/dldinternet/opensrs/api/domain/mixins/get/getdomain.rb', line 12 def GetDomainListExt(=nil) GetDomainList(, 'ext_results') end |