Class: Sequencescape::Api::ResourceInvalid

Inherits:
Error
  • Object
show all
Defined in:
lib/sequencescape-api/errors.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (ResourceInvalid) initialize(resource)

Returns a new instance of ResourceInvalid



16
17
18
19
# File 'lib/sequencescape-api/errors.rb', line 16

def initialize(resource)
  super('Resource is reported as invalid by the server')
  @resource = resource
end

Instance Attribute Details

- (Object) resource (readonly)

Returns the value of attribute resource



21
22
23
# File 'lib/sequencescape-api/errors.rb', line 21

def resource
  @resource
end