Class: Morpho::Configuration
- Inherits:
-
Object
- Object
- Morpho::Configuration
- Defined in:
- lib/morpho/configuration.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
-
#auth ⇒ Object
Returns the value of attribute auth.
-
#host ⇒ Object
Returns the value of attribute host.
-
#jwt ⇒ Object
Returns the value of attribute jwt.
-
#mailer ⇒ Object
Returns the value of attribute mailer.
-
#port ⇒ Object
Returns the value of attribute port.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/morpho/configuration.rb', line 17 def initialize self.host = '' self.port = '' self.protocol = '' self.mailer = Morpho::Configurations::Mailer.new self.api = Morpho::Configurations::API.new self.jwt = Morpho::Configurations::JWT.new self.auth = Morpho::Configurations::Auth.new end |
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
13 14 15 |
# File 'lib/morpho/configuration.rb', line 13 def api @api end |
#auth ⇒ Object
Returns the value of attribute auth.
15 16 17 |
# File 'lib/morpho/configuration.rb', line 15 def auth @auth end |
#host ⇒ Object
Returns the value of attribute host.
8 9 10 |
# File 'lib/morpho/configuration.rb', line 8 def host @host end |
#jwt ⇒ Object
Returns the value of attribute jwt.
14 15 16 |
# File 'lib/morpho/configuration.rb', line 14 def jwt @jwt end |
#mailer ⇒ Object
Returns the value of attribute mailer.
12 13 14 |
# File 'lib/morpho/configuration.rb', line 12 def mailer @mailer end |
#port ⇒ Object
Returns the value of attribute port.
9 10 11 |
# File 'lib/morpho/configuration.rb', line 9 def port @port end |
#protocol ⇒ Object
Returns the value of attribute protocol.
10 11 12 |
# File 'lib/morpho/configuration.rb', line 10 def protocol @protocol end |