Class: Urbit::Fact::SettingsEventDelEntryFact

Inherits:
SettingsEventFact show all
Defined in:
lib/urbit/fact/settings_fact.rb

Instance Attribute Summary

Attributes inherited from BaseFact

#ack, #channel, #data, #type

Instance Method Summary collapse

Methods inherited from SettingsEventFact

#base_contents, #bucket, #bucket_key, #desk, #desk_name, #initialize, #to_h

Methods inherited from BaseFact

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

Constructor Details

This class inherits a constructor from Urbit::Fact::SettingsEventFact

Instance Method Details

#acceptObject



55
56
57
# File 'lib/urbit/fact/settings_fact.rb', line 55

def accept
  self.bucket.entries.delete(self.entry)
end

#contentsObject



59
60
61
# File 'lib/urbit/fact/settings_fact.rb', line 59

def contents
  self.base_contents["del-entry"]
end

#entryObject



63
64
65
# File 'lib/urbit/fact/settings_fact.rb', line 63

def entry
  self.contents["entry-key"]
end