Sha256: 977decef9a68444ab91e7e3be0858a3610b564a022e4bf003385611584de2736

Contents?: true

Size: 506 Bytes

Versions: 9

Compression:

Stored size: 506 Bytes

Contents

module Worthwhile
  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
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
worthwhile-0.1.2 worthwhile-models/app/models/worthwhile/contributor_agreement.rb
worthwhile-models-0.1.2 app/models/worthwhile/contributor_agreement.rb
worthwhile-0.1.1 worthwhile-models/app/models/worthwhile/contributor_agreement.rb
worthwhile-models-0.1.1 app/models/worthwhile/contributor_agreement.rb
worthwhile-0.1.0 worthwhile-models/app/models/worthwhile/contributor_agreement.rb
worthwhile-models-0.1.0 app/models/worthwhile/contributor_agreement.rb
worthwhile-0.0.3 app/models/worthwhile/contributor_agreement.rb
worthwhile-0.0.2 app/models/worthwhile/contributor_agreement.rb
worthwhile-0.0.1 app/models/worthwhile/contributor_agreement.rb