Class: LetsencryptPlugin::Challenge
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- LetsencryptPlugin::Challenge
- Defined in:
- app/models/letsencrypt_plugin/challenge.rb,
app/models/letsencrypt_plugin/challenge.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize ⇒ Challenge
constructor
A new instance of Challenge.
Constructor Details
#initialize ⇒ Challenge
Returns a new instance of Challenge.
11 12 13 14 |
# File 'app/models/letsencrypt_plugin/challenge.rb', line 11 def initialize full_challenge_dir = File.join(Rails.root, LetsencryptPlugin.config.challenge_dir_name, 'challenge') @response = IO.read(full_challenge_dir) end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
9 10 11 |
# File 'app/models/letsencrypt_plugin/challenge.rb', line 9 def response @response end |