Class: TwitterImages::Configuration
- Inherits:
-
Object
- Object
- TwitterImages::Configuration
- Defined in:
- lib/twitter_images/configuration.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#directory ⇒ Object
Returns the value of attribute directory.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#requester ⇒ Object
readonly
Returns the value of attribute requester.
-
#search ⇒ Object
Returns the value of attribute search.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #prepare(options) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 |
# File 'lib/twitter_images/configuration.rb', line 6 def initialize @requester = Requester.new end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/twitter_images/configuration.rb', line 4 def amount @amount end |
#directory ⇒ Object
Returns the value of attribute directory.
4 5 6 |
# File 'lib/twitter_images/configuration.rb', line 4 def directory @directory end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/twitter_images/configuration.rb', line 3 def @options end |
#requester ⇒ Object (readonly)
Returns the value of attribute requester.
3 4 5 |
# File 'lib/twitter_images/configuration.rb', line 3 def requester @requester end |
#search ⇒ Object
Returns the value of attribute search.
4 5 6 |
# File 'lib/twitter_images/configuration.rb', line 4 def search @search end |
Instance Method Details
#prepare(options) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/twitter_images/configuration.rb', line 10 def prepare() check_auth set_directory([:path]) get_search([:term]) get_amount([:amount]) start end |