Class: Spandx::Core::Gateway

Inherits:
Object
  • Object
show all
Extended by:
Registerable
Defined in:
lib/spandx/core/gateway.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Registerable

all, each, inherited, registry

Constructor Details

#initialize(http: Spandx.http) ⇒ Gateway

Returns a new instance of Gateway.



8
9
10
# File 'lib/spandx/core/gateway.rb', line 8

def initialize(http: Spandx.http)
  @http = http
end

Instance Attribute Details

#httpObject (readonly)

Returns the value of attribute http.



6
7
8
# File 'lib/spandx/core/gateway.rb', line 6

def http
  @http
end

Instance Method Details

#licenses_for(_dependency) ⇒ Object

Raises:



16
17
18
# File 'lib/spandx/core/gateway.rb', line 16

def licenses_for(_dependency)
  raise ::Spandx::Error, :licenses_for
end

#matches?(_dependency) ⇒ Boolean

Returns:

  • (Boolean)

Raises:



12
13
14
# File 'lib/spandx/core/gateway.rb', line 12

def matches?(_dependency)
  raise ::Spandx::Error, :matches?
end