Class: Urbit::InitialGroupGroupParser

Inherits:
GroupParser show all
Defined in:
lib/urbit/group_parser.rb

Instance Method Summary collapse

Methods inherited from GroupParser

#resource, #resource_hash

Methods inherited from Parser

#initialize

Constructor Details

This class inherits a constructor from Urbit::Parser

Instance Method Details

#groupObject



58
59
60
61
62
63
64
# File 'lib/urbit/group_parser.rb', line 58

def group
  Urbit::Group.new(path:    self.resource,
                   members: self.group_hash["members"],
                   policy:  self.group_hash["policy"],
                   tags:    self.group_hash["tags"],
                   hidden:  self.group_hash["hidden"])
end

#group_hashObject



66
67
68
# File 'lib/urbit/group_parser.rb', line 66

def group_hash
  @j["group"]
end