Class: Twitty::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_tokenObject

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_secretObject

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_urlObject

Returns the value of attribute base_url.



2
3
4
# File 'lib/twitty/config.rb', line 2

def base_url
  @base_url
end

#consumer_keyObject

Returns the value of attribute consumer_key.



2
3
4
# File 'lib/twitty/config.rb', line 2

def consumer_key
  @consumer_key
end

#consumer_secretObject

Returns the value of attribute consumer_secret.



2
3
4
# File 'lib/twitty/config.rb', line 2

def consumer_secret
  @consumer_secret
end

#environmentObject

Returns the value of attribute environment.



2
3
4
# File 'lib/twitty/config.rb', line 2

def environment
  @environment
end