Class: RailsImagePostSolution::Configuration
- Inherits:
-
Object
- Object
- RailsImagePostSolution::Configuration
- Defined in:
- lib/rails_image_post_solution.rb
Instance Attribute Summary collapse
-
#admin_check_method ⇒ Object
Returns the value of attribute admin_check_method.
-
#auto_freeze_on_flag ⇒ Object
Returns the value of attribute auto_freeze_on_flag.
-
#openai_api_key ⇒ Object
Returns the value of attribute openai_api_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_method ⇒ Object
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_flag ⇒ Object
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_key ⇒ Object
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 |