Class: Platformx::Configuration

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

Overview

PlatformX configuration class.

Author:

  • Tim Mushen

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Initialize Platformx configuration object and set defaults



126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/platformx.rb', line 126

def initialize
  # Bugsnag
  # @bugsnag_api_key = ""
  
  # X_mail
  @mail_from = ""
  @mail_address = "smtp.mailgun.org"
  @mail_port = "587"
  @mail_domain = "smtp.mailgun.org"
  @mail_user_name = ""
  @mail_password = ""
  @mail_authentication = "plain"

  # For AWS/Fog
  @aws_bucket = ""
  @aws_secret_access_key = ""
  @aws_access_key_id = ""
  @aws_region = ""
end

Instance Attribute Details

#aws_access_key_idString

Controls the aws access key id

Returns:

  • (String)

    the aws access key id



115
116
117
# File 'lib/platformx.rb', line 115

def aws_access_key_id
  @aws_access_key_id
end

#aws_bucketString

Controls the aws bucket name

Returns:

  • (String)

    aws bucket name



111
112
113
# File 'lib/platformx.rb', line 111

def aws_bucket
  @aws_bucket
end

#aws_regionString

Controls the aws region

Returns:

  • (String)

    aws region



123
124
125
# File 'lib/platformx.rb', line 123

def aws_region
  @aws_region
end

#aws_secret_access_keyString

Controls the aws secret access key

Returns:

  • (String)

    the aws secret access key



119
120
121
# File 'lib/platformx.rb', line 119

def aws_secret_access_key
  @aws_secret_access_key
end

#mail_addressString

Controls the mail address

Returns:

  • (String)

    the mail address



87
88
89
# File 'lib/platformx.rb', line 87

def mail_address
  @mail_address
end

#mail_authenticationString

Controls mail authentication

Returns:

  • (String)

    mail authentication



107
108
109
# File 'lib/platformx.rb', line 107

def mail_authentication
  @mail_authentication
end

#mail_domainString

Controls the mail domain

Returns:

  • (String)

    the mail domain



95
96
97
# File 'lib/platformx.rb', line 95

def mail_domain
  @mail_domain
end

#mail_fromString

Controls the mail from

Returns:

  • (String)

    the mail from



83
84
85
# File 'lib/platformx.rb', line 83

def mail_from
  @mail_from
end

#mail_passwordString

Controls the mail password

Returns:

  • (String)

    the mail password



103
104
105
# File 'lib/platformx.rb', line 103

def mail_password
  @mail_password
end

#mail_portString

Controls the mail port number

Returns:

  • (String)

    the mail port number



91
92
93
# File 'lib/platformx.rb', line 91

def mail_port
  @mail_port
end

#mail_user_nameString

Controls the mail user name

Returns:

  • (String)

    the mail user name



99
100
101
# File 'lib/platformx.rb', line 99

def mail_user_name
  @mail_user_name
end