Class: LetsencryptPlugin::Challenge

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/letsencrypt_plugin/challenge.rb,
app/models/letsencrypt_plugin/challenge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChallenge

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

#responseObject

Returns the value of attribute response.



9
10
11
# File 'app/models/letsencrypt_plugin/challenge.rb', line 9

def response
  @response
end