class Nem::Model::Namespace

Attributes

fqn[R]
height[R]
id[R]
owner[R]

Public Class Methods

new_from_namespace(hash) click to toggle source
# File lib/nem/model/namespace.rb, line 19
def self.new_from_namespace(hash)
  new(hash)
end
new_from_namespace_meta_data_pair(hash) click to toggle source
# File lib/nem/model/namespace.rb, line 8
def self.new_from_namespace_meta_data_pair(hash)
  meta = hash[:meta]
  ns = hash[:namespace]
  new(
    id: meta[:id],
    fqn: ns[:fqn],
    owner: ns[:owner],
    height: ns[:height]
  )
end