Class: Flagit::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/flagit/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_tokenObject

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_secretObject

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_keyObject

Returns the value of attribute consumer_key.



3
4
5
# File 'lib/flagit/configuration.rb', line 3

def consumer_key
  @consumer_key
end

#consumer_secretObject

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_jsonObject



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