Class: Multipart::MultipartPost
- Inherits:
-
Object
- Object
- Multipart::MultipartPost
- Defined in:
- lib/tinder/multipart.rb
Overview
:nodoc:
Constant Summary collapse
- BOUNDARY =
'campfire-is-awesome'
- HEADER =
{"Content-type" => "multipart/form-data, boundary=" + BOUNDARY + " "}
- TIMEOUT_SECONDS =
30
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#params ⇒ Object
Returns the value of attribute params.
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(params) ⇒ MultipartPost
constructor
A new instance of MultipartPost.
- #prepare_query ⇒ Object
Constructor Details
#initialize(params) ⇒ MultipartPost
Returns a new instance of MultipartPost.
50 51 52 53 54 |
# File 'lib/tinder/multipart.rb', line 50 def initialize(params) @params = params @query = {} self.prepare_query end |
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers.
49 50 51 |
# File 'lib/tinder/multipart.rb', line 49 def headers @headers end |
#params ⇒ Object
Returns the value of attribute params.
49 50 51 |
# File 'lib/tinder/multipart.rb', line 49 def params @params end |
#query ⇒ Object
Returns the value of attribute query.
49 50 51 |
# File 'lib/tinder/multipart.rb', line 49 def query @query end |