Class: Twitty::Config
- Inherits:
-
Object
- Object
- Twitty::Config
- Defined in:
- lib/twitty/config.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.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
-
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
-
#environment ⇒ Object
Returns the value of attribute environment.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(params = {}) ⇒ Config
Returns a new instance of Config.
9 10 11 12 13 14 15 16 |
# File 'lib/twitty/config.rb', line 9 def initialize(params = {}) @base_url = params[:base_url] @consumer_key = params[:consumer_key] @consumer_secret = params[:consumer_secret] @access_token = params[:access_token] @access_token_secret = params[:access_token_secret] end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
2 3 4 |
# File 'lib/twitty/config.rb', line 2 def access_token @access_token end |
#access_token_secret ⇒ Object
Returns the value of attribute access_token_secret.
2 3 4 |
# File 'lib/twitty/config.rb', line 2 def access_token_secret @access_token_secret end |
#base_url ⇒ Object
Returns the value of attribute base_url.
2 3 4 |
# File 'lib/twitty/config.rb', line 2 def base_url @base_url end |
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
2 3 4 |
# File 'lib/twitty/config.rb', line 2 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
2 3 4 |
# File 'lib/twitty/config.rb', line 2 def consumer_secret @consumer_secret end |
#environment ⇒ Object
Returns the value of attribute environment.
2 3 4 |
# File 'lib/twitty/config.rb', line 2 def environment @environment end |