Class: Protocol::Content::Parameters::Value::Invalid

Inherits:
Object
  • Object
show all
Defined in:
lib/protocol/content/parameters/value.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, **details) ⇒ Invalid

Returns a new instance of Invalid.



20
21
22
23
# File 'lib/protocol/content/parameters/value.rb', line 20

def initialize(code, **details)
	@code = code
	@details = details
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



25
26
27
# File 'lib/protocol/content/parameters/value.rb', line 25

def code
  @code
end

#detailsObject (readonly)

Returns the value of attribute details.



26
27
28
# File 'lib/protocol/content/parameters/value.rb', line 26

def details
  @details
end

Instance Method Details

#apply_upload(errors, path) ⇒ Object



28
29
30
31
# File 'lib/protocol/content/parameters/value.rb', line 28

def apply_upload(errors, path)
	errors << Error.new(path, @code, **@details)
	return true
end