Module: Taskworld::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/taskworld/config.rb

Constant Summary collapse

DEFAULT_ENDPONT =
'api.taskworld.com'.freeze
ENDPOINTS =
{
  asia: 'asia-api.taskworld.com',
  europe: 'europe-api.taskworld.com',
  usa: DEFAULT_ENDPONT
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#emailObject

Returns the value of attribute email.



12
13
14
# File 'lib/taskworld/config.rb', line 12

def email
  @email
end

#passwordObject

Returns the value of attribute password.



12
13
14
# File 'lib/taskworld/config.rb', line 12

def password
  @password
end

#serverObject

Returns the value of attribute server.



12
13
14
# File 'lib/taskworld/config.rb', line 12

def server
  @server
end

Instance Method Details

#resetObject



14
15
16
17
18
# File 'lib/taskworld/config.rb', line 14

def reset
  self.server = nil
  self.email = nil
  self.password = nil
end