Class: TwitterImages::Configuration
- Inherits:
-
Object
- Object
- TwitterImages::Configuration
- Defined in:
- lib/twitter_images/configuration.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#address ⇒ Object
Returns the value of attribute address.
-
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
-
#directory ⇒ Object
Returns the value of attribute directory.
-
#http ⇒ Object
Returns the value of attribute http.
-
#output ⇒ Object
Returns the value of attribute output.
-
#request ⇒ Object
Returns the value of attribute request.
-
#response ⇒ Object
Returns the value of attribute response.
-
#search ⇒ Object
Returns the value of attribute search.
Instance Method Summary collapse
- #establish_connection ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #prepare ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/twitter_images/configuration.rb', line 6 def initialize() @search = search @directory = directory @output = output @consumer_key = consumer_key @access_token = access_token @address = address @request = request @http = http @response = response end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
3 4 5 |
# File 'lib/twitter_images/configuration.rb', line 3 def access_token @access_token end |
#address ⇒ Object
Returns the value of attribute address.
3 4 5 |
# File 'lib/twitter_images/configuration.rb', line 3 def address @address end |
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
3 4 5 |
# File 'lib/twitter_images/configuration.rb', line 3 def consumer_key @consumer_key end |
#directory ⇒ Object
Returns the value of attribute directory.
3 4 5 |
# File 'lib/twitter_images/configuration.rb', line 3 def directory @directory end |
#http ⇒ Object
Returns the value of attribute http.
3 4 5 |
# File 'lib/twitter_images/configuration.rb', line 3 def http @http end |
#output ⇒ Object
Returns the value of attribute output.
3 4 5 |
# File 'lib/twitter_images/configuration.rb', line 3 def output @output end |
#request ⇒ Object
Returns the value of attribute request.
3 4 5 |
# File 'lib/twitter_images/configuration.rb', line 3 def request @request end |
#response ⇒ Object
Returns the value of attribute response.
3 4 5 |
# File 'lib/twitter_images/configuration.rb', line 3 def response @response end |
#search ⇒ Object
Returns the value of attribute search.
3 4 5 |
# File 'lib/twitter_images/configuration.rb', line 3 def search @search end |
Instance Method Details
#establish_connection ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/twitter_images/configuration.rb', line 26 def establish_connection setup_address setup_http build_request issue_request get_output end |
#prepare ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/twitter_images/configuration.rb', line 18 def prepare setup_credentials get_directory change_directory get_search establish_connection end |