Class: Urbit::Fact::RemoveGraphFact
Instance Attribute Summary
Attributes inherited from BaseFact
#ack, #channel, #data, #type
Instance Method Summary
collapse
#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
73
74
75
|
# File 'lib/urbit/fact/graph_fact.rb', line 73
def initialize(channel:, event:)
super channel: channel, event: event
end
|
Instance Method Details
#create_parser ⇒ Object
77
78
79
|
# File 'lib/urbit/fact/graph_fact.rb', line 77
def create_parser
Urbit::RemoveGraphParser.new(for_graph: self.incoming_graph, with_json: self.raw_json)
end
|
#raw_json ⇒ Object
81
82
83
|
# File 'lib/urbit/fact/graph_fact.rb', line 81
def raw_json
self.root_h["remove-graph"]
end
|
#resource_h ⇒ Object
85
86
87
|
# File 'lib/urbit/fact/graph_fact.rb', line 85
def resource_h
self.raw_json
end
|