lib/duracloud/sync_validation.rb in duracloud-client-0.9.1 vs lib/duracloud/sync_validation.rb in duracloud-client-0.10.0
- old
+ new
@@ -1,22 +1,24 @@
-require 'active_model'
require 'tempfile'
require 'csv'
require 'fileutils'
+require 'hashie'
module Duracloud
- class SyncValidation
- include ActiveModel::Model
+ class SyncValidation < Hashie::Dash
TWO_SPACES = ' '
MD5_CSV_OPTS = { col_sep: TWO_SPACES }.freeze
MANIFEST_CSV_OPTS = { col_sep: "\t", headers: true, return_headers: false }.freeze
MISSING = "MISSING"
CHANGED = "CHANGED"
FOUND = "FOUND"
- attr_accessor :space_id, :content_dir, :store_id, :work_dir, :fast
+ property :space_id, required: true
+ property :content_dir, required: true
+ property :store_id
+ property :work_dir
def self.call(*args)
new(*args).call
end