Class: TwitterConfig
- Inherits:
-
Object
- Object
- TwitterConfig
- Includes:
- Validatable
- Defined in:
- lib/config/config.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#access_token_secret ⇒ Object
readonly
Returns the value of attribute access_token_secret.
-
#consumer_key ⇒ Object
readonly
Returns the value of attribute consumer_key.
-
#consumer_secret ⇒ Object
readonly
Returns the value of attribute consumer_secret.
-
#tweet_max_length ⇒ Object
readonly
Returns the value of attribute tweet_max_length.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(consumer_key, consumer_secret, access_token, access_token_secret, username, tweet_max_length) ⇒ TwitterConfig
constructor
A new instance of TwitterConfig.
Methods included from Validatable
Constructor Details
#initialize(consumer_key, consumer_secret, access_token, access_token_secret, username, tweet_max_length) ⇒ TwitterConfig
Returns a new instance of TwitterConfig.
16 17 18 19 20 21 22 23 |
# File 'lib/config/config.rb', line 16 def initialize(consumer_key, consumer_secret, access_token, access_token_secret, username, tweet_max_length) @consumer_key = consumer_key @consumer_secret = consumer_secret @access_token = access_token @access_token_secret = access_token_secret @username = username @tweet_max_length = tweet_max_length end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
13 14 15 |
# File 'lib/config/config.rb', line 13 def access_token @access_token end |
#access_token_secret ⇒ Object (readonly)
Returns the value of attribute access_token_secret.
13 14 15 |
# File 'lib/config/config.rb', line 13 def access_token_secret @access_token_secret end |
#consumer_key ⇒ Object (readonly)
Returns the value of attribute consumer_key.
13 14 15 |
# File 'lib/config/config.rb', line 13 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object (readonly)
Returns the value of attribute consumer_secret.
13 14 15 |
# File 'lib/config/config.rb', line 13 def consumer_secret @consumer_secret end |
#tweet_max_length ⇒ Object (readonly)
Returns the value of attribute tweet_max_length.
13 14 15 |
# File 'lib/config/config.rb', line 13 def tweet_max_length @tweet_max_length end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
13 14 15 |
# File 'lib/config/config.rb', line 13 def username @username end |