Class: Filescan::Client
- Inherits:
-
Object
- Object
- Filescan::Client
- Defined in:
- lib/filescan/client.rb,
lib/filescan/client/scan.rb,
lib/filescan/client/project.rb
Defined Under Namespace
Constant Summary collapse
- API_BASE =
'https://api.filescan.dev/v1'
Instance Attribute Summary collapse
-
#project_id ⇒ Object
Returns the value of attribute project_id.
Instance Method Summary collapse
-
#initialize(api_key = nil) ⇒ Client
constructor
A new instance of Client.
Methods included from Project
Methods included from Scan
Constructor Details
#initialize(api_key = nil) ⇒ Client
Returns a new instance of Client.
16 17 18 19 |
# File 'lib/filescan/client.rb', line 16 def initialize(api_key=nil) @api_key = api_key || ENV['FILESCAN_API_KEY'] @connection = connection end |
Instance Attribute Details
#project_id ⇒ Object
Returns the value of attribute project_id.
12 13 14 |
# File 'lib/filescan/client.rb', line 12 def project_id @project_id end |