Class: RailsImagePostSolution::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_image_post_solution.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



22
23
24
25
26
# File 'lib/rails_image_post_solution.rb', line 22

def initialize
  @openai_api_key = ENV["OPENAI_API_KEY"]
  @auto_freeze_on_flag = true
  @admin_check_method = :admin?
end

Instance Attribute Details

#admin_check_methodObject

Returns the value of attribute admin_check_method.



20
21
22
# File 'lib/rails_image_post_solution.rb', line 20

def admin_check_method
  @admin_check_method
end

#auto_freeze_on_flagObject

Returns the value of attribute auto_freeze_on_flag.



20
21
22
# File 'lib/rails_image_post_solution.rb', line 20

def auto_freeze_on_flag
  @auto_freeze_on_flag
end

#openai_api_keyObject

Returns the value of attribute openai_api_key.



20
21
22
# File 'lib/rails_image_post_solution.rb', line 20

def openai_api_key
  @openai_api_key
end