Class: WirisPlugin::HttpSync
- Inherits:
-
Http
- Object
- Http
- WirisPlugin::HttpSync
- Includes:
- Wiris
- Defined in:
- lib/com/wiris/util/sys/HttpSync.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#errorMessage ⇒ Object
Returns the value of attribute errorMessage.
Instance Method Summary collapse
- #getData ⇒ Object
- #getError ⇒ Object
-
#initialize(url) ⇒ HttpSync
constructor
A new instance of HttpSync.
- #onData(data) ⇒ Object
- #onError(msg) ⇒ Object
Constructor Details
#initialize(url) ⇒ HttpSync
Returns a new instance of HttpSync.
8 9 10 11 12 13 |
# File 'lib/com/wiris/util/sys/HttpSync.rb', line 8 def initialize(url) super(url) self.async = false self.data = nil self.errorMessage = nil end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
6 7 8 |
# File 'lib/com/wiris/util/sys/HttpSync.rb', line 6 def data @data end |
#errorMessage ⇒ Object
Returns the value of attribute errorMessage.
7 8 9 |
# File 'lib/com/wiris/util/sys/HttpSync.rb', line 7 def errorMessage @errorMessage end |
Instance Method Details
#getData ⇒ Object
20 21 22 |
# File 'lib/com/wiris/util/sys/HttpSync.rb', line 20 def getData() return self.data end |
#getError ⇒ Object
23 24 25 |
# File 'lib/com/wiris/util/sys/HttpSync.rb', line 23 def getError() return self.errorMessage end |
#onData(data) ⇒ Object
14 15 16 |
# File 'lib/com/wiris/util/sys/HttpSync.rb', line 14 def onData(data) self.data = data end |
#onError(msg) ⇒ Object
17 18 19 |
# File 'lib/com/wiris/util/sys/HttpSync.rb', line 17 def onError(msg) self.errorMessage = msg end |