Module: Hyrax::Ingest::HasSIP

Included in:
Fetcher::CSVFile, Fetcher::XMLFile, Fetcher::YAMLFile, Ingester::Base, Runner
Defined in:
lib/hyrax/ingest/has_sip.rb

Instance Method Summary collapse

Instance Method Details

#sipHyrax::Ingest::SIP

Returns the value of @sip attribute.

Returns:



17
# File 'lib/hyrax/ingest/has_sip.rb', line 17

def sip; @sip; end

#sip=(sip) ⇒ Object



9
10
11
12
13
14
# File 'lib/hyrax/ingest/has_sip.rb', line 9

def sip=(sip)
  unless sip.nil?
    raise Hyrax::Ingest::Errors::InvalidSIP.new(sip) unless sip.is_a? Hyrax::Ingest::SIP
  end
  @sip = sip
end