Class: Filescan::Client

Inherits:
Object
  • Object
show all
Includes:
Project, Scan
Defined in:
lib/filescan/client.rb,
lib/filescan/client/scan.rb,
lib/filescan/client/project.rb

Defined Under Namespace

Modules: Project, Scan

Constant Summary collapse

API_BASE =
'https://api.filescan.dev/v1'

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Project

#list_projects

Methods included from Scan

#check_file, #scan_report

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_idObject

Returns the value of attribute project_id.



12
13
14
# File 'lib/filescan/client.rb', line 12

def project_id
  @project_id
end