Class: Wasabi::Resolver
- Inherits:
-
Object
- Object
- Wasabi::Resolver
- Defined in:
- lib/wasabi/resolver.rb
Overview
Wasabi::Resolver
Resolves local and remote WSDL documents.
Defined Under Namespace
Classes: HTTPError
Constant Summary collapse
- URL =
/^http[s]?:/
- XML =
/^</
Instance Attribute Summary collapse
-
#adapter ⇒ Object
readonly
Returns the value of attribute adapter.
-
#document ⇒ Object
readonly
Returns the value of attribute document.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(document, request = nil, adapter = nil) ⇒ Resolver
constructor
A new instance of Resolver.
- #resolve ⇒ Object
Constructor Details
#initialize(document, request = nil, adapter = nil) ⇒ Resolver
Returns a new instance of Resolver.
23 24 25 26 27 |
# File 'lib/wasabi/resolver.rb', line 23 def initialize(document, request = nil, adapter = nil) @document = document @request = request || Faraday.new @adapter = adapter end |
Instance Attribute Details
#adapter ⇒ Object (readonly)
Returns the value of attribute adapter.
29 30 31 |
# File 'lib/wasabi/resolver.rb', line 29 def adapter @adapter end |
#document ⇒ Object (readonly)
Returns the value of attribute document.
29 30 31 |
# File 'lib/wasabi/resolver.rb', line 29 def document @document end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
29 30 31 |
# File 'lib/wasabi/resolver.rb', line 29 def request @request end |