Class: Protocol::Content::Parameters::Value::Uploaded

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Uploaded

Returns a new instance of Uploaded.



35
36
37
# File 'lib/protocol/content/parameters/value.rb', line 35

def initialize(value)
	@value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



39
40
41
# File 'lib/protocol/content/parameters/value.rb', line 39

def value
  @value
end

Instance Method Details

#apply_upload(errors, path) {|@value| ... } ⇒ Object

Yields:



41
42
43
44
# File 'lib/protocol/content/parameters/value.rb', line 41

def apply_upload(errors, path)
	yield(@value)
	return true
end