Class: TwitterConfig

Inherits:
Object
  • Object
show all
Includes:
Validatable
Defined in:
lib/config/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Validatable

#valid?

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_tokenObject (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_secretObject (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_keyObject (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_secretObject (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_lengthObject (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

#usernameObject (readonly)

Returns the value of attribute username.



13
14
15
# File 'lib/config/config.rb', line 13

def username
  @username
end