Class: Ikbis::Advanced::Test
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #echo(options = {}) ⇒ Object
-
#login(options = {}) ⇒ Object
ikbis.test.login -> Is the user logged in? Returns: -> <profile> -> <id>25874</id> -> <username>moski_doski</username> -> </profile> Error Codes: -> 205: Not Logged in.
-
#ping(options = {}) ⇒ Object
ikbis.test.ping -> This is just a simple ping test…
Methods inherited from Base
Instance Method Details
#echo(options = {}) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/ikbis/advanced/test.rb', line 5 def echo(={}) .merge!(:what => "ikbis.test.echo") .merge!(:how => 'xml') unless .has_key?(:how) response = @access_token.post('/api/rest' , ) return response.body end |
#login(options = {}) ⇒ Object
ikbis.test.login
-> Is the user logged in?
Returns:
-> <profile>
-> <id>25874</id>
-> <username>moski_doski</username>
-> </profile>
Error Codes:
-> 205: Not Logged in
27 28 29 30 31 |
# File 'lib/ikbis/advanced/test.rb', line 27 def login( = {}) .merge!(:what => "ikbis.test.login") .merge!(:how => "xml") unless .has_key?(:how) return send_request() end |
#ping(options = {}) ⇒ Object
ikbis.test.ping
-> This is just a simple ping test...
Returns:
-> <rsp>ok</rsp>
43 44 45 46 47 |
# File 'lib/ikbis/advanced/test.rb', line 43 def ping( = {}) .merge!(:what => "ikbis.test.ping") .merge!(:how => 'xml') unless .has_key?(:how) return send_request() end |