Sha256: 560091a4e32c4105d300b69a370a5a3cee4411fe7e6a71a88dfcbe572701b80a

Contents?: true

Size: 394 Bytes

Versions: 2

Compression:

Stored size: 394 Bytes

Contents

module Institutions#:no_doc
  module Parents#:no_doc
    # Parents attributes
    attr_reader :parent_code
    
    # 
    # Merges the given parent into the Institution.
    # Assumes the parent has a to_hash method
    # 
    def merge_parent(parent={})
      # Use the parent as the base and merge in the current institution
      merge(deep_merge(parent.to_hash, to_hash))
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
institutions-0.0.2 lib/institutions/institution/parents.rb
institutions-0.0.1 lib/institutions/institution/parents.rb