Class: OaiEndpoint

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/oai_endpoint.rb

Overview

Schema Information

Table name: oai_endpoints

id              :integer(4)      not null, primary key
uri             :string(2083)
display_uri     :string(2083)
metadata_prefix :string(255)
title           :string(1000)
short_title     :string(100)

Instance Method Summary collapse

Instance Method Details

#banned?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'app/models/oai_endpoint.rb', line 27

def banned?
  self.status == MuckRaker::Status::BANNED
end

#inform_adminObject



35
36
37
# File 'app/models/oai_endpoint.rb', line 35

def inform_admin
  RakerMailer.deliver_notification_feed_added(self)
end

#pending?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'app/models/oai_endpoint.rb', line 31

def pending?
  self.status == MuckRaker::Status::PENDING
end