Module: Winker::Configuration
- Included in:
- Winker
- Defined in:
- lib/winker.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#password ⇒ Object
Returns the value of attribute password.
-
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
-
#server_time_dif ⇒ Object
Returns the value of attribute server_time_dif.
-
#username ⇒ Object
Returns the value of attribute username.
-
#wait_for_updates ⇒ Object
Returns the value of attribute wait_for_updates.
Instance Method Summary collapse
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
39 40 41 |
# File 'lib/winker.rb', line 39 def access_token @access_token end |
#client_id ⇒ Object
Returns the value of attribute client_id.
39 40 41 |
# File 'lib/winker.rb', line 39 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
39 40 41 |
# File 'lib/winker.rb', line 39 def client_secret @client_secret end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
39 40 41 |
# File 'lib/winker.rb', line 39 def endpoint @endpoint end |
#logger ⇒ Object
Returns the value of attribute logger.
39 40 41 |
# File 'lib/winker.rb', line 39 def logger @logger end |
#password ⇒ Object
Returns the value of attribute password.
39 40 41 |
# File 'lib/winker.rb', line 39 def password @password end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
39 40 41 |
# File 'lib/winker.rb', line 39 def refresh_token @refresh_token end |
#server_time_dif ⇒ Object
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 |
#username ⇒ Object
Returns the value of attribute username.
39 40 41 |
# File 'lib/winker.rb', line 39 def username @username end |
#wait_for_updates ⇒ Object
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
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 |