Module: Messaging::Controls::Metadata::Written

Defined in:
lib/messaging/controls/metadata.rb

Class Method Summary collapse

Class Method Details

.dataObject



105
106
107
108
109
110
111
112
113
# File 'lib/messaging/controls/metadata.rb', line 105

def self.data
  data = Metadata.data

  Messaging::Message::Metadata.transient_attributes.each do |not_written_attribute|
    data.delete(not_written_attribute)
  end

  data
end

.exampleObject



101
102
103
# File 'lib/messaging/controls/metadata.rb', line 101

def self.example
  Messaging::Message::Metadata.build(data)
end