Class: Mattermost::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



24
25
26
27
28
29
# File 'lib/mattermost.rb', line 24

def initialize
  @server = ""
  @protocol = "https"
  @username = ""
  @password = ""
end

Instance Attribute Details

#passwordObject

Returns the value of attribute password.



22
23
24
# File 'lib/mattermost.rb', line 22

def password
  @password
end

#protocolObject

Returns the value of attribute protocol.



22
23
24
# File 'lib/mattermost.rb', line 22

def protocol
  @protocol
end

#serverObject

Returns the value of attribute server.



22
23
24
# File 'lib/mattermost.rb', line 22

def server
  @server
end

#usernameObject

Returns the value of attribute username.



22
23
24
# File 'lib/mattermost.rb', line 22

def username
  @username
end

Instance Method Details

#raw_hostObject



31
32
33
# File 'lib/mattermost.rb', line 31

def raw_host
  "#{Mattermost.configuration.protocol}://#{Mattermost.configuration.server}"
end