Class: Mattermost::Config
- Inherits:
-
Object
- Object
- Mattermost::Config
- Defined in:
- lib/mattermost.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#server ⇒ Object
Returns the value of attribute server.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #raw_host ⇒ Object
Constructor Details
#initialize ⇒ Config
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
#password ⇒ Object
Returns the value of attribute password.
22 23 24 |
# File 'lib/mattermost.rb', line 22 def password @password end |
#protocol ⇒ Object
Returns the value of attribute protocol.
22 23 24 |
# File 'lib/mattermost.rb', line 22 def protocol @protocol end |
#server ⇒ Object
Returns the value of attribute server.
22 23 24 |
# File 'lib/mattermost.rb', line 22 def server @server end |
#username ⇒ Object
Returns the value of attribute username.
22 23 24 |
# File 'lib/mattermost.rb', line 22 def username @username end |
Instance Method Details
#raw_host ⇒ Object
31 32 33 |
# File 'lib/mattermost.rb', line 31 def raw_host "#{Mattermost.configuration.protocol}://#{Mattermost.configuration.server}" end |