Class: Moab::FileGroupDifferenceSubset

Inherits:
Serializable
  • Object
show all
Includes:
HappyMapper
Defined in:
lib/moab/file_group_difference_subset.rb

Overview

Note:

Copyright © 2012 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved. See LICENSE for details.

A container for reporting a set of file-level differences of the type specified by the change attribute

Data Model

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ FileGroupDifferenceSubset


23
24
25
26
# File 'lib/moab/file_group_difference_subset.rb', line 23

def initialize(opts={})
  @files = Array.new
  super(opts)
end

Instance Attribute Details

#changeString


30
# File 'lib/moab/file_group_difference_subset.rb', line 30

attribute :change, String, :key => true

#countInteger


34
# File 'lib/moab/file_group_difference_subset.rb', line 34

attribute :count, Integer, :on_save => Proc.new { |n| n.to_s }

#filesArray<FileInstanceDifference>


42
# File 'lib/moab/file_group_difference_subset.rb', line 42

has_many :files, FileInstanceDifference, :tag=>'file'