class Ddr::Models::AttachedFilesProfile

Attributes

object[R]

Public Class Methods

new(object) click to toggle source
# File lib/ddr/models/attached_files_profile.rb, line 7
def initialize(object)
  @object = object
end

Public Instance Methods

attributes() click to toggle source
# File lib/ddr/models/attached_files_profile.rb, line 11
def attributes
  files.keys.map { |k| [k, nil] }.to_h
end
read_attribute_for_serialization(key) click to toggle source
# File lib/ddr/models/attached_files_profile.rb, line 15
def read_attribute_for_serialization(key)
  AttachedFileProfile.new(files[key])
end

Private Instance Methods

files() click to toggle source
# File lib/ddr/models/attached_files_profile.rb, line 21
def files
  object.attached_files_having_content
end