Class: Urbit::InitialGroupParser

Inherits:
Parser
  • Object
show all
Defined in:
lib/urbit/group_parser.rb

Instance Method Summary collapse

Methods inherited from Parser

#initialize

Constructor Details

This class inherits a constructor from Urbit::Parser

Instance Method Details

#group_hashesObject



52
53
54
# File 'lib/urbit/group_parser.rb', line 52

def group_hashes
  @j
end

#groupsObject



44
45
46
47
48
49
50
# File 'lib/urbit/group_parser.rb', line 44

def groups
  self.group_hashes.collect {|k, v| Group.new(path:    k.sub('/ship/', ''),
                                              members: v["members"],
                                              policy:  v["policy"],
                                              tags:    v["tags"],
                                              hidden:  v["hidden"])}
end