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.



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

#apiObject

Returns the value of attribute api.



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

def api
  @api
end

#authObject

Returns the value of attribute auth.



15
16
17
# File 'lib/morpho/configuration.rb', line 15

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.



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

def jwt
  @jwt
end

#mailerObject

Returns the value of attribute mailer.



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

def mailer
  @mailer
end

#portObject

Returns the value of attribute port.



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

def port
  @port
end

#protocolObject

Returns the value of attribute protocol.



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

def protocol
  @protocol
end