Class: Solis::NoopEndpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/solis/resource.rb

Instance Method Summary collapse

Constructor Details

#initialize(path, action) ⇒ NoopEndpoint

Returns a new instance of NoopEndpoint.



23
24
25
26
# File 'lib/solis/resource.rb', line 23

def initialize(path, action)
  @path = path
  @action = action
end

Instance Method Details

#sideload_allowlistObject



28
29
30
# File 'lib/solis/resource.rb', line 28

def sideload_allowlist
  @allow_list
end

#sideload_allowlist=(val) ⇒ Object



32
33
34
35
# File 'lib/solis/resource.rb', line 32

def sideload_allowlist=(val)
  @allow_list = JSONAPI::IncludeDirective.new(val).to_hash
  super(@allow_list)
end