Class: Flagit::Configuration
- Inherits:
-
Object
- Object
- Flagit::Configuration
- Defined in:
- lib/flagit/configuration.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#access_token_secret ⇒ Object
Returns the value of attribute access_token_secret.
-
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
-
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
Instance Method Summary collapse
- #config_to_json ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 |
# File 'lib/flagit/configuration.rb', line 5 def initialize @consumer_key = nil @consumer_secret = nil @access_token = nil @access_token_secret = nil end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
3 4 5 |
# File 'lib/flagit/configuration.rb', line 3 def access_token @access_token end |
#access_token_secret ⇒ Object
Returns the value of attribute access_token_secret.
3 4 5 |
# File 'lib/flagit/configuration.rb', line 3 def access_token_secret @access_token_secret end |
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
3 4 5 |
# File 'lib/flagit/configuration.rb', line 3 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
3 4 5 |
# File 'lib/flagit/configuration.rb', line 3 def consumer_secret @consumer_secret end |
Instance Method Details
#config_to_json ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/flagit/configuration.rb', line 12 def config_to_json { consumer_key: consumer_key, consumer_secret: consumer_secret, access_token: access_token, access_token_secret: access_token_secret }.to_json end |