Class: Sap4ruby::Client
- Inherits:
-
Object
- Object
- Sap4ruby::Client
- Includes:
- DestinationDataProvider, Modules
- Defined in:
- lib/sap4ruby/client.rb
Instance Attribute Summary collapse
-
#abap_properties ⇒ Object
Returns the value of attribute abap_properties.
-
#connection_keys ⇒ Object
Returns the value of attribute connection_keys.
-
#sap_server ⇒ Object
Returns the value of attribute sap_server.
Class Method Summary collapse
Instance Method Summary collapse
- #get_destination_properties(system) ⇒ Object
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #set_destination_data_event_listener(eventListener) ⇒ Object
- #supports_events ⇒ Object
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/sap4ruby/client.rb', line 10 def initialize @sap_server = "SAP_SERVER" @abap_properties = Properties.new @connection_keys = { :ashost => Sap4ruby.HOST, :sysnr => Sap4ruby.SYSNR, :lang => Sap4ruby.LANGUAGE, :client => Sap4ruby.CLIENT, :user => Sap4ruby.USER, :passwd => Sap4ruby.PASSWORD } @connection_keys.each do |key, value| @abap_properties.put "jco.client.#{key}", value end end |
Instance Attribute Details
#abap_properties ⇒ Object
Returns the value of attribute abap_properties.
6 7 8 |
# File 'lib/sap4ruby/client.rb', line 6 def abap_properties @abap_properties end |
#connection_keys ⇒ Object
Returns the value of attribute connection_keys.
6 7 8 |
# File 'lib/sap4ruby/client.rb', line 6 def connection_keys @connection_keys end |
#sap_server ⇒ Object
Returns the value of attribute sap_server.
6 7 8 |
# File 'lib/sap4ruby/client.rb', line 6 def sap_server @sap_server end |
Class Method Details
Instance Method Details
#get_destination_properties(system) ⇒ Object
27 |
# File 'lib/sap4ruby/client.rb', line 27 def get_destination_properties(system); @abap_properties end |
#set_destination_data_event_listener(eventListener) ⇒ Object
28 |
# File 'lib/sap4ruby/client.rb', line 28 def set_destination_data_event_listener(eventListener); end |
#supports_events ⇒ Object
29 |
# File 'lib/sap4ruby/client.rb', line 29 def supports_events; false end |