lib/nis/endpoint/account/namespace.rb
module Nis::Endpoint
module Account::Namespace
# @param [String] address
# @param [String] parent
# @param [String] id
# @param [Integer] page_size
# @return [Array <Nis::Struct::Namespace>]
# @see https://nemproject.github.io/#retrieving-namespaces-that-an-account-owns
def account_namespace_page(address:, parent: nil, id: nil, page_size: nil)
request!(:get, '/account/namespace/page',
address: address,
parent: parent,
id: id,
pageSize: page_size
) do |res|
res[:data].map { |ns| Nis::Struct::Namespace.build(ns) }
end
end
end
end