Class: Curl::Upload
- Inherits:
-
Object
- Object
- Curl::Upload
- Defined in:
- ext/curb_upload.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.class ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'ext/curb_upload.c', line 24
VALUE ruby_curl_upload_new(VALUE klass) {
VALUE upload;
ruby_curl_upload *rbcu = ALLOC(ruby_curl_upload);
rbcu->stream = Qnil;
rbcu->offset = 0;
upload = Data_Wrap_Struct(klass, curl_upload_mark, curl_upload_free, rbcu);
return upload;
}
|
Instance Method Details
#class ⇒ Object
66 67 68 69 70 |
# File 'ext/curb_upload.c', line 66
VALUE ruby_curl_upload_offset_get(VALUE self) {
ruby_curl_upload *rbcu;
Data_Get_Struct(self, ruby_curl_upload, rbcu);
return INT2FIX(rbcu->offset);
}
|
#class ⇒ Object
56 57 58 59 60 61 |
# File 'ext/curb_upload.c', line 56
VALUE ruby_curl_upload_offset_set(VALUE self, VALUE offset) {
ruby_curl_upload *rbcu;
Data_Get_Struct(self, ruby_curl_upload, rbcu);
rbcu->offset = FIX2INT(offset);
return offset;
}
|
#class ⇒ Object
47 48 49 50 51 |
# File 'ext/curb_upload.c', line 47
VALUE ruby_curl_upload_stream_get(VALUE self) {
ruby_curl_upload *rbcu;
Data_Get_Struct(self, ruby_curl_upload, rbcu);
return rbcu->stream;
}
|
#class ⇒ Object
37 38 39 40 41 42 |
# File 'ext/curb_upload.c', line 37
VALUE ruby_curl_upload_stream_set(VALUE self, VALUE stream) {
ruby_curl_upload *rbcu;
Data_Get_Struct(self, ruby_curl_upload, rbcu);
rbcu->stream = stream;
return stream;
}
|