Class: Urbit::Fact::RemoveGroupMemberFact
- Inherits:
-
GroupUpdateFact
- Object
- BaseFact
- GroupUpdateFact
- Urbit::Fact::RemoveGroupMemberFact
- Defined in:
- lib/urbit/fact/group_fact.rb
Instance Attribute Summary
Attributes inherited from BaseFact
Instance Method Summary collapse
-
#initialize(channel:, event:) ⇒ RemoveGroupMemberFact
constructor
A new instance of RemoveGroupMemberFact.
- #parser ⇒ Object
- #raw_json ⇒ Object
Methods inherited from GroupUpdateFact
Methods inherited from BaseFact
#add_ack, #contents, #create_parser, #for_this_ship?, #graph_update?, #is_acknowledged?, #ship, #to_h, #to_s
Constructor Details
#initialize(channel:, event:) ⇒ RemoveGroupMemberFact
Returns a new instance of RemoveGroupMemberFact.
94 95 96 97 |
# File 'lib/urbit/fact/group_fact.rb', line 94 def initialize(channel:, event:) super channel: channel, event: event self.channel.ship.groups.remove_members group_path: self.parser.resource, ships: self.parser.ships end |
Instance Method Details
#parser ⇒ Object
99 100 101 |
# File 'lib/urbit/fact/group_fact.rb', line 99 def parser Urbit::ChangeMemberParser.new(with_json: self.raw_json) end |
#raw_json ⇒ Object
103 104 105 |
# File 'lib/urbit/fact/group_fact.rb', line 103 def raw_json self.root_h["removeMembers"] end |