7f5d33722a5fd7bba64ed96dadae95f86a6226c1
[perl4caml.git] / wrappers / pl_Net_Google_Cache.ml
1 (** Wrapper around Perl [Net::Google::Cache] class.
2   *
3   * Copyright (C) 2003 Merjis Ltd.
4   *
5   * $Id: pl_Net_Google_Cache.ml,v 1.3 2003-10-16 13:41:07 rich Exp $
6   *)
7
8 open Perl
9
10 let _ = eval "use Net::Google::Cache"
11
12 class net_google_cache sv =
13
14 object (self)
15
16   method key =
17     string_of_sv (call_method sv "key" [])
18   method set_key v =
19     call_method_void sv "key" [sv_of_string v]
20   method url =
21     string_of_sv (call_method sv "url" [])
22   method set_url v =
23     call_method_void sv "url" [sv_of_string v]
24   method get =
25     let sv = call_method sv "get" [] in
26     if sv_is_undef sv then raise Not_found;
27     string_of_sv sv
28
29 end
30
31 (* let new_ = ... *)