Class: ShareToGplus::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/share_to_gplus/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#categoryObject

Returns the value of attribute category.



3
4
5
# File 'lib/share_to_gplus/configuration.rb', line 3

def category
  @category
end

#javascript_driverObject

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

Returns the value of attribute link.



3
4
5
# File 'lib/share_to_gplus/configuration.rb', line 3

def link
  @link
end

#loginObject

Returns the value of attribute login.



3
4
5
# File 'lib/share_to_gplus/configuration.rb', line 3

def 
  @login
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/share_to_gplus/configuration.rb', line 3

def password
  @password
end

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/share_to_gplus/configuration.rb', line 3

def text
  @text
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/share_to_gplus/configuration.rb', line 3

def url
  @url
end