Class: Solis::NoopEndpoint
- Inherits:
-
Object
- Object
- Solis::NoopEndpoint
- Defined in:
- lib/solis/resource.rb
Instance Method Summary collapse
-
#initialize(path, action) ⇒ NoopEndpoint
constructor
A new instance of NoopEndpoint.
- #sideload_allowlist ⇒ Object
- #sideload_allowlist=(val) ⇒ Object
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_allowlist ⇒ Object
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 |