Class: Urbit::Fact::GroupUpdateFact

Inherits:
BaseFact
  • Object
show all
Defined in:
lib/urbit/fact/group_fact.rb

Instance Attribute Summary

Attributes inherited from BaseFact

#ack, #channel, #data, #type

Instance Method Summary collapse

Methods inherited from BaseFact

#add_ack, #contents, #create_parser, #for_this_ship?, #graph_update?, #is_acknowledged?, #raw_json, #ship, #to_h, #to_s

Constructor Details

#initialize(channel:, event:) ⇒ GroupUpdateFact

Returns a new instance of GroupUpdateFact.



9
10
11
# File 'lib/urbit/fact/group_fact.rb', line 9

def initialize(channel:, event:)
  super channel: channel, event: event
end

Instance Method Details

#root_hObject



13
14
15
# File 'lib/urbit/fact/group_fact.rb', line 13

def root_h
  self.contents["json"]["groupUpdate"]
end