Class: Urbit::Fact::RemoveTagFact
- Inherits:
-
GroupUpdateFact
- Object
- BaseFact
- GroupUpdateFact
- Urbit::Fact::RemoveTagFact
- Defined in:
- lib/urbit/fact/group_fact.rb
Instance Attribute Summary
Attributes inherited from BaseFact
Instance Method Summary collapse
-
#initialize(channel:, event:) ⇒ RemoveTagFact
constructor
A new instance of RemoveTagFact.
- #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:) ⇒ RemoveTagFact
Returns a new instance of RemoveTagFact.
109 110 111 112 |
# File 'lib/urbit/fact/group_fact.rb', line 109 def initialize(channel:, event:) super channel: channel, event: event self.channel.ship.groups.remove_tag group_path: self.parser.resource, ships: self.parser.ships, tag: self.parser.tag end |
Instance Method Details
#parser ⇒ Object
114 115 116 |
# File 'lib/urbit/fact/group_fact.rb', line 114 def parser Urbit::ChangeTagParser.new(with_json: self.raw_json) end |
#raw_json ⇒ Object
118 119 120 |
# File 'lib/urbit/fact/group_fact.rb', line 118 def raw_json self.root_h["removeTag"] end |