source: extensions/gsdl-video/trunk/installed/cmdline/lib/ruby/1.8/wsdl/soap/address.rb@ 18425

Last change on this file since 18425 was 18425, checked in by davidb, 15 years ago

Video extension to Greenstone

File size: 667 bytes
Line 
1# WSDL4R - WSDL SOAP address definition.
2# Copyright (C) 2002, 2003 NAKAMURA, Hiroshi <[email protected]>.
3
4# This program is copyrighted free software by NAKAMURA, Hiroshi. You can
5# redistribute it and/or modify it under the same terms of Ruby's license;
6# either the dual license version in 2003, or any later version.
7
8
9require 'wsdl/info'
10
11
12module WSDL
13module SOAP
14
15
16class Address < Info
17 attr_reader :location
18
19 def initialize
20 super
21 @location = nil
22 end
23
24 def parse_element(element)
25 nil
26 end
27
28 def parse_attr(attr, value)
29 case attr
30 when LocationAttrName
31 @location = value.source
32 else
33 nil
34 end
35 end
36end
37
38
39end
40end
Note: See TracBrowser for help on using the repository browser.