Sha256: 69d96e27eaa3d05635d8c66a59ef0799c1275f16a1198baaed709b45ddc83704

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 Bytes

Contents

module Presentation
  # TODO: abstract what's common between Record and Grid into a shared module or reusable objects or something
  class Details < Grid
    def iname; :details end
    
    # The display title for this presentation. Will default based on the id.
    attr_accessor :title
    
    def fields=(args)
      args.each do |field|
        self.fields << field
      end
    end
    
    def fields
      @fields ||= Presenting::FieldSet.new(Presenting::Attribute, :name, :value)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
presenting-1.0.0 lib/presentation/details.rb