Class: VirusTotal::Base
- Inherits:
-
Object
- Object
- VirusTotal::Base
- Defined in:
- lib/virus_total/base.rb
Constant Summary collapse
- BASE_URL =
"https://www.virustotal.com/vtapi/v2/"
Instance Attribute Summary collapse
-
#apikey ⇒ Object
readonly
Returns the value of attribute apikey.
-
#resource(separator = ", ") ⇒ Object
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
- #api_response(url, params = {}) ⇒ Object
-
#initialize(resources, apikey) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(resources, apikey) ⇒ Base
Returns a new instance of Base.
9 10 11 12 |
# File 'lib/virus_total/base.rb', line 9 def initialize(resources, apikey) @resource = resources @apikey = apikey end |
Instance Attribute Details
#apikey ⇒ Object (readonly)
Returns the value of attribute apikey.
7 8 9 |
# File 'lib/virus_total/base.rb', line 7 def apikey @apikey end |
#resource(separator = ", ") ⇒ Object (readonly)
Returns the value of attribute resource.
7 8 9 |
# File 'lib/virus_total/base.rb', line 7 def resource @resource end |