Class: WirisPlugin::HttpSync

Inherits:
Http
  • Object
show all
Includes:
Wiris
Defined in:
lib/com/wiris/util/sys/HttpSync.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject

Returns the value of attribute data.



6
7
8
# File 'lib/com/wiris/util/sys/HttpSync.rb', line 6

def data
  @data
end

#errorMessageObject

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

#getDataObject



20
21
22
# File 'lib/com/wiris/util/sys/HttpSync.rb', line 20

def getData()
    return self.data
end

#getErrorObject



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