Sha256: 6db26118d2f794b888893e9689f320817780e1c50cc24f3dbb9be64a176cd3ac

Contents?: true

Size: 448 Bytes

Versions: 13

Compression:

Stored size: 448 Bytes

Contents

class ContributorAgreement
  attr_reader :curation_concern, :user
  def initialize(curation_concern, user, params)
    @curation_concern = curation_concern
    @user = user
    @param_value = params[param_key.to_sym] || params[param_key.to_s]
  end

  def acceptance_value
    'accept'
  end

  def param_key
    :accept_contributor_agreement
  end
  attr_reader :param_value

  def is_being_accepted?
    param_value == acceptance_value
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
curate-0.6.6 app/models/contributor_agreement.rb
curate-0.6.5 app/models/contributor_agreement.rb
curate-0.6.4 app/models/contributor_agreement.rb
curate-0.6.3 app/models/contributor_agreement.rb
curate-0.6.1 app/models/contributor_agreement.rb
curate-0.6.0 app/models/contributor_agreement.rb
curate-0.5.6 app/models/contributor_agreement.rb
curate-0.5.5 app/models/contributor_agreement.rb
curate-0.5.4 app/models/contributor_agreement.rb
curate-0.5.2 app/models/contributor_agreement.rb
curate-0.5.1 app/models/contributor_agreement.rb
curate-0.5.0 app/models/contributor_agreement.rb
curate-0.4.2 app/models/contributor_agreement.rb