Module: Nis::Endpoint::Namespace::Root

Included in:
Nis
Defined in:
lib/nis/endpoint/namespace/root.rb

Instance Method Summary collapse

Instance Method Details

#namespace_root_page(id: nil, page_size: nil) ⇒ Array <Nis::Struct::NamespaceMetaDataPair>


5
6
7
8
9
10
11
12
# File 'lib/nis/endpoint/namespace/root.rb', line 5

def namespace_root_page(id: nil, page_size: nil)
  request!(:get, '/namespace/root/page',
    id: id,
    pageSize: page_size
  ) do |res|
    res[:data].map { |nsmdp| Nis::Struct::NamespaceMetaDataPair.build(nsmdp) }
  end
end