Class: ShareToGplus::Configuration
- Inherits:
-
Object
- Object
- ShareToGplus::Configuration
- Defined in:
- lib/share_to_gplus/configuration.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#javascript_driver ⇒ Object
Returns the value of attribute javascript_driver.
-
#link ⇒ Object
Returns the value of attribute link.
-
#login ⇒ Object
Returns the value of attribute login.
-
#password ⇒ Object
Returns the value of attribute password.
-
#text ⇒ Object
Returns the value of attribute text.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 |
# File 'lib/share_to_gplus/configuration.rb', line 6 def initialize %w(login password text link category url javascript_driver).each do |var| instance_variable_set("@#{var}", nil) end @javascript_driver ||= :selenium # set default driver end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
3 4 5 |
# File 'lib/share_to_gplus/configuration.rb', line 3 def category @category end |
#javascript_driver ⇒ Object
Returns the value of attribute javascript_driver.
3 4 5 |
# File 'lib/share_to_gplus/configuration.rb', line 3 def javascript_driver @javascript_driver end |
#link ⇒ Object
Returns the value of attribute link.
3 4 5 |
# File 'lib/share_to_gplus/configuration.rb', line 3 def link @link end |
#login ⇒ Object
Returns the value of attribute login.
3 4 5 |
# File 'lib/share_to_gplus/configuration.rb', line 3 def login @login end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/share_to_gplus/configuration.rb', line 3 def password @password end |
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/share_to_gplus/configuration.rb', line 3 def text @text end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/share_to_gplus/configuration.rb', line 3 def url @url end |