Class: LetterOpenerWeb::Config
- Inherits:
-
Object
- Object
- LetterOpenerWeb::Config
- Defined in:
- lib/letter_opener_web.rb
Instance Attribute Summary collapse
-
#aws_access_key_id ⇒ Object
Returns the value of attribute aws_access_key_id.
-
#aws_bucket ⇒ Object
Returns the value of attribute aws_bucket.
-
#aws_region ⇒ Object
Returns the value of attribute aws_region.
-
#aws_secret_access_key ⇒ Object
Returns the value of attribute aws_secret_access_key.
- #letters_location ⇒ Object
-
#letters_storage ⇒ Object
Returns the value of attribute letters_storage.
Instance Attribute Details
#aws_access_key_id ⇒ Object
Returns the value of attribute aws_access_key_id.
10 11 12 |
# File 'lib/letter_opener_web.rb', line 10 def aws_access_key_id @aws_access_key_id end |
#aws_bucket ⇒ Object
Returns the value of attribute aws_bucket.
10 11 12 |
# File 'lib/letter_opener_web.rb', line 10 def aws_bucket @aws_bucket end |
#aws_region ⇒ Object
Returns the value of attribute aws_region.
10 11 12 |
# File 'lib/letter_opener_web.rb', line 10 def aws_region @aws_region end |
#aws_secret_access_key ⇒ Object
Returns the value of attribute aws_secret_access_key.
10 11 12 |
# File 'lib/letter_opener_web.rb', line 10 def aws_secret_access_key @aws_secret_access_key end |
#letters_location ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/letter_opener_web.rb', line 18 def letters_location @letters_location ||= case LetterOpenerWeb.config.letters_storage when :local Rails.root.join('tmp', 'letter_opener') end end |
#letters_storage ⇒ Object
Returns the value of attribute letters_storage.
10 11 12 |
# File 'lib/letter_opener_web.rb', line 10 def letters_storage @letters_storage end |