Class: Urbit::Fact::RemoveGraphFact
- Inherits:
-
GraphUpdateFact
- Object
- BaseFact
- GraphUpdateFact
- Urbit::Fact::RemoveGraphFact
- Defined in:
- lib/urbit/fact/graph_fact.rb
Instance Attribute Summary
Attributes inherited from BaseFact
Instance Method Summary collapse
- #create_parser ⇒ Object
-
#initialize(channel:, event:) ⇒ RemoveGraphFact
constructor
A new instance of RemoveGraphFact.
- #raw_json ⇒ Object
- #resource_h ⇒ Object
Methods inherited from GraphUpdateFact
#attach_parser, #graph_update?, #incoming_graph, #resource, #root_h, #to_h
Methods inherited from BaseFact
#add_ack, #contents, #for_this_ship?, #graph_update?, #is_acknowledged?, #ship, #to_h, #to_s
Constructor Details
#initialize(channel:, event:) ⇒ RemoveGraphFact
Returns a new instance of RemoveGraphFact.
75 76 77 |
# File 'lib/urbit/fact/graph_fact.rb', line 75 def initialize(channel:, event:) super channel: channel, event: event end |
Instance Method Details
#create_parser ⇒ Object
79 80 81 |
# File 'lib/urbit/fact/graph_fact.rb', line 79 def create_parser Urbit::RemoveGraphParser.new(for_graph: incoming_graph, with_json: self.raw_json) end |
#raw_json ⇒ Object
83 84 85 |
# File 'lib/urbit/fact/graph_fact.rb', line 83 def raw_json self.root_h["remove-graph"] end |
#resource_h ⇒ Object
87 88 89 |
# File 'lib/urbit/fact/graph_fact.rb', line 87 def resource_h self.raw_json end |