Class: Lolp::Configuration::Config
- Inherits:
-
Object
- Object
- Lolp::Configuration::Config
- Defined in:
- lib/lolp/configuration.rb
Instance Attribute Summary collapse
-
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
14 15 16 17 18 |
# File 'lib/lolp/configuration.rb', line 14 def initialize @api_endpoint = ENV['LOLIPOP_MC_API_ENDPOINT'] || 'https://mc.lolipop.jp/api' @username = ENV['LOLIPOP_MC_USERNAME'] @password = ENV['LOLIPOP_MC_PASSWORD'] end |
Instance Attribute Details
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
12 13 14 |
# File 'lib/lolp/configuration.rb', line 12 def api_endpoint @api_endpoint end |
#password ⇒ Object
Returns the value of attribute password.
12 13 14 |
# File 'lib/lolp/configuration.rb', line 12 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
12 13 14 |
# File 'lib/lolp/configuration.rb', line 12 def username @username end |