Class: PhishTank::Configuration
- Inherits:
-
Object
- Object
- PhishTank::Configuration
- Defined in:
- lib/phishtank/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#etag ⇒ Object
Returns the value of attribute etag.
-
#temp_directory ⇒ Object
Returns the value of attribute temp_directory.
Instance Method Summary collapse
-
#initialize(api_key = "", temp_directory = "/tmp", etag = nil) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(api_key = "", temp_directory = "/tmp", etag = nil) ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/phishtank/configuration.rb', line 5 def initialize(api_key = "", temp_directory = "/tmp", etag = nil) @api_key = api_key @temp_directory = temp_directory @etag = etag end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/phishtank/configuration.rb', line 3 def api_key @api_key end |
#etag ⇒ Object
Returns the value of attribute etag.
3 4 5 |
# File 'lib/phishtank/configuration.rb', line 3 def etag @etag end |
#temp_directory ⇒ Object
Returns the value of attribute temp_directory.
3 4 5 |
# File 'lib/phishtank/configuration.rb', line 3 def temp_directory @temp_directory end |