Class: Morpho::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



15
16
17
18
19
20
21
22
# File 'lib/morpho/configuration.rb', line 15

def initialize
  self.host = ''

  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

#apiObject

Returns the value of attribute api.



11
12
13
# File 'lib/morpho/configuration.rb', line 11

def api
  @api
end

#authObject

Returns the value of attribute auth.



13
14
15
# File 'lib/morpho/configuration.rb', line 13

def auth
  @auth
end

#hostObject

Returns the value of attribute host.



8
9
10
# File 'lib/morpho/configuration.rb', line 8

def host
  @host
end

#jwtObject

Returns the value of attribute jwt.



12
13
14
# File 'lib/morpho/configuration.rb', line 12

def jwt
  @jwt
end

#mailerObject

Returns the value of attribute mailer.



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

def mailer
  @mailer
end