Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call super() in a bunch of initializers #359

Merged
merged 1 commit into from
Jun 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/qa/authorities/assign_fast/generic_authority.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ module Qa::Authorities
# http://www.oclc.org/developer/develop/web-services/fast-api/assign-fast.en.html
class AssignFast::GenericAuthority < Base
attr_reader :subauthority

def initialize(subauthority)
super()
@subauthority = subauthority
end

Expand Down
1 change: 1 addition & 0 deletions lib/qa/authorities/crossref/generic_authority.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Crossref::GenericAuthority < Base
attr_reader :subauthority

def initialize(subauthority)
super()
@subauthority = subauthority
end

Expand Down
1 change: 1 addition & 0 deletions lib/qa/authorities/discogs/generic_authority.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Discogs::GenericAuthority < Base

# @param [String] subauthority to use
def initialize(subauthority)
super()
@subauthority = subauthority
self.primary_artists = []
self.work_uri = "workn1"
Expand Down
1 change: 1 addition & 0 deletions lib/qa/authorities/linked_data/generic_authority.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class GenericAuthority < Base
delegate :subauthority?, :subauthorities?, to: :search_config, prefix: 'search'

def initialize(auth_name)
super()
@authority_config = Qa::Authorities::LinkedData::Config.new(auth_name)
end

Expand Down
1 change: 1 addition & 0 deletions lib/qa/authorities/loc/generic_authority.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module Qa::Authorities
class Loc::GenericAuthority < Base
attr_reader :subauthority
def initialize(subauthority)
super()
@subauthority = subauthority
end

Expand Down
1 change: 1 addition & 0 deletions lib/qa/authorities/local/file_based_authority.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module Qa::Authorities
class Local::FileBasedAuthority < Base
attr_reader :subauthority
def initialize(subauthority)
super()
@subauthority = subauthority
end

Expand Down
1 change: 1 addition & 0 deletions lib/qa/authorities/local/table_based_authority.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def table_or_view_exists?
attr_reader :subauthority

def initialize(subauthority)
super()
self.class.check_for_index
@subauthority = subauthority
end
Expand Down
1 change: 1 addition & 0 deletions lib/qa/authorities/oclcts/generic_oclc_authority.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class Oclcts::GenericOclcAuthority < Base
attr_reader :subauthority

def initialize(subauthority)
super()
@subauthority = subauthority
end
include WebServiceBase
Expand Down
1 change: 1 addition & 0 deletions spec/controllers/terms_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
class Qa::Authorities::Local::TwoArgs < Qa::Authorities::Base
attr_reader :subauthority
def initialize(subauthority)
super()
@subauthority = subauthority
end

Expand Down