Module: Winker::Configuration

Included in:
Winker
Defined in:
lib/winker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



39
40
41
# File 'lib/winker.rb', line 39

def access_token
  @access_token
end

#client_idObject

Returns the value of attribute client_id.



39
40
41
# File 'lib/winker.rb', line 39

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.



39
40
41
# File 'lib/winker.rb', line 39

def client_secret
  @client_secret
end

#endpointObject

Returns the value of attribute endpoint.



39
40
41
# File 'lib/winker.rb', line 39

def endpoint
  @endpoint
end

#loggerObject

Returns the value of attribute logger.



39
40
41
# File 'lib/winker.rb', line 39

def logger
  @logger
end

#passwordObject

Returns the value of attribute password.



39
40
41
# File 'lib/winker.rb', line 39

def password
  @password
end

#refresh_tokenObject

Returns the value of attribute refresh_token.



39
40
41
# File 'lib/winker.rb', line 39

def refresh_token
  @refresh_token
end

#server_time_difObject

Returns the value of attribute server_time_dif.



39
40
41
# File 'lib/winker.rb', line 39

def server_time_dif
  @server_time_dif
end

#usernameObject

Returns the value of attribute username.



39
40
41
# File 'lib/winker.rb', line 39

def username
  @username
end

#wait_for_updatesObject

Returns the value of attribute wait_for_updates.



39
40
41
# File 'lib/winker.rb', line 39

def wait_for_updates
  @wait_for_updates
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



41
42
43
44
45
# File 'lib/winker.rb', line 41

def configure
  self.wait_for_updates = true
  self.logger = Logger.new($stdout)
  yield self
end