Class: LetterOpenerWeb::Config

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

Instance Attribute Summary collapse

Instance Attribute Details

#aws_access_key_idObject

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_bucketObject

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_regionObject

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_keyObject

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_locationObject



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_storageObject

Returns the value of attribute letters_storage.



10
11
12
# File 'lib/letter_opener_web.rb', line 10

def letters_storage
  @letters_storage
end