Class: Rhaiker::MultipartBuilder::MultipartData
- Inherits:
-
Object
- Object
- Rhaiker::MultipartBuilder::MultipartData
- Defined in:
- lib/rhaiker/multipart_builder.rb
Direct Known Subclasses
Constant Summary collapse
- EOL =
"\r\n"
Instance Attribute Summary collapse
-
#field_name ⇒ Object
Returns the value of attribute field_name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, field_name) ⇒ MultipartData
constructor
A new instance of MultipartData.
- #to_s ⇒ Object
Constructor Details
#initialize(value, field_name) ⇒ MultipartData
Returns a new instance of MultipartData.
65 66 67 68 |
# File 'lib/rhaiker/multipart_builder.rb', line 65 def initialize(value, field_name) @value = value @field_name = field_name end |
Instance Attribute Details
#field_name ⇒ Object
Returns the value of attribute field_name.
63 64 65 |
# File 'lib/rhaiker/multipart_builder.rb', line 63 def field_name @field_name end |
#value ⇒ Object
Returns the value of attribute value.
63 64 65 |
# File 'lib/rhaiker/multipart_builder.rb', line 63 def value @value end |