Class: Protocol::Content::Parameters::Value::Uploaded
- Inherits:
-
Object
- Object
- Protocol::Content::Parameters::Value::Uploaded
- Defined in:
- lib/protocol/content/parameters/value.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #apply_upload(errors, path) {|@value| ... } ⇒ Object
-
#initialize(value) ⇒ Uploaded
constructor
A new instance of Uploaded.
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
#value ⇒ Object (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
41 42 43 44 |
# File 'lib/protocol/content/parameters/value.rb', line 41 def apply_upload(errors, path) yield(@value) return true end |