Class: Urbit::Fact::SettingsEventDelBucketFact

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



45
46
47
# File 'lib/urbit/fact/settings_fact.rb', line 45

def accept
  self.desk.buckets.delete(self.bucket)
end

#contentsObject



49
50
51
# File 'lib/urbit/fact/settings_fact.rb', line 49

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