Class: SoarSr::Handler
- Includes:
- Jsender
- Defined in:
- lib/soar_sr/handler.rb
Direct Known Subclasses
Associations, Contacts, DomainPerspectives, Search, ServiceComponents, ServiceDefinitions, Services
Instance Attribute Summary collapse
-
#registry ⇒ Object
Returns the value of attribute registry.
Instance Method Summary collapse
- #authorize ⇒ Object
-
#initialize(urns, uddi, credentials, registry) ⇒ Handler
constructor
A new instance of Handler.
Methods inherited from Validator
#authorized?, #contact?, #credentials?, #identifier?, #key_provided?, #length_at_least?, #meta?, #one_of, #present?, #provided?, #type?, #uri?, #wadl?
Constructor Details
#initialize(urns, uddi, credentials, registry) ⇒ Handler
Returns a new instance of Handler.
10 11 12 13 14 15 16 |
# File 'lib/soar_sr/handler.rb', line 10 def initialize(urns, uddi, credentials, registry) @urns = urns @uddi = uddi @credentials = credentials @registry = registry validate end |
Instance Attribute Details
#registry ⇒ Object
Returns the value of attribute registry.
8 9 10 |
# File 'lib/soar_sr/handler.rb', line 8 def registry @registry end |
Instance Method Details
#authorize ⇒ Object
18 19 20 |
# File 'lib/soar_sr/handler.rb', line 18 def @uddi.broker.authenticate(@credentials['username'], @credentials['password']) end |