class Agave::Local::FieldType::Gallery
Public Class Methods
parse(value, repo)
click to toggle source
# File lib/agave/local/field_type/gallery.rb, line 8 def self.parse(value, repo) images = if value value.map { |image| FieldType::File.parse(image, repo) } else [] end new(images) end
Public Instance Methods
to_hash(max_depth = 3, current_depth = 0)
click to toggle source
# File lib/agave/local/field_type/gallery.rb, line 17 def to_hash(max_depth = 3, current_depth = 0) map { |item| item.to_hash(max_depth, current_depth) } end