|
Revision 1824, 0.7 kB
(checked in by nahi, 2 years ago)
|
- Copyright notice updated. add '2000-2007' uniformly.
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
author date id revision
|
| Line | |
|---|
| 1 |
# WSDL4R - WSDL SOAP address definition. |
|---|
| 2 |
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>. |
|---|
| 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 |
|
|---|
| 9 |
require 'wsdl/info' |
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
module WSDL |
|---|
| 13 |
module SOAP |
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
class 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 |
|---|
| 36 |
end |
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
end |
|---|
| 40 |
end |
|---|