Class: TermsOfUse::SignUpServiceUpdaterJob
- Inherits:
-
Object
- Object
- TermsOfUse::SignUpServiceUpdaterJob
- Includes:
- Sidekiq::Job
- Defined in:
- app/sidekiq/terms_of_use/sign_up_service_updater_job.rb
Instance Attribute Summary collapse
-
#icn ⇒ Object
readonly
Returns the value of attribute icn.
-
#signature_name ⇒ Object
readonly
Returns the value of attribute signature_name.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#icn ⇒ Object (readonly)
Returns the value of attribute icn.
20 21 22 |
# File 'app/sidekiq/terms_of_use/sign_up_service_updater_job.rb', line 20 def icn @icn end |
#signature_name ⇒ Object (readonly)
Returns the value of attribute signature_name.
20 21 22 |
# File 'app/sidekiq/terms_of_use/sign_up_service_updater_job.rb', line 20 def signature_name @signature_name end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
20 21 22 |
# File 'app/sidekiq/terms_of_use/sign_up_service_updater_job.rb', line 20 def version @version end |
Instance Method Details
#perform(attr_package_key) ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'app/sidekiq/terms_of_use/sign_up_service_updater_job.rb', line 22 def perform(attr_package_key) attrs = Sidekiq::AttrPackage.find(attr_package_key) @icn = attrs[:icn] @signature_name = attrs[:signature_name] @version = attrs[:version] terms_of_use_agreement.accepted? ? accept : decline end |