Class: OracleOWS::Base
- Inherits:
-
Object
- Object
- OracleOWS::Base
- Includes:
- Common
- Defined in:
- lib/oracle_ows/base.rb
Overview
OracleOws::Base stores basic parameters to connect to the service
Direct Known Subclasses
GuestServices, HouseKeeping, Information, Reservation, ResvAdvanced
Instance Attribute Summary
Attributes included from Common
#namespaces, #password, #url, #username
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
Instantiates the OracleOWS::Base object.
Constructor Details
#initialize(options = {}) ⇒ Base
Instantiates the OracleOWS::Base object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/oracle_ows/base.rb', line 25 def initialize( = {}) # { url: 'http://some.domain/path/' } @url = [:url] # { username: 'abc' } @username = [:username] # { password: 'abc' } @password = [:password] # basic namespaces required at least, to begin with @namespaces = { 'xmlns:env' => 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns:cor' => 'http://webservices.micros.com/og/4.3/Core/' } # merge any additional given namespaces @namespaces.merge!([:namespaces] || {}) end |