Class: RScriptClient
Instance Attribute Summary collapse
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
-
#package ⇒ Object
Returns the value of attribute package.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ RScriptClient
constructor
A new instance of RScriptClient.
Constructor Details
#initialize(opts = {}) ⇒ RScriptClient
Returns a new instance of RScriptClient.
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/rcscript-client.rb', line 11 def initialize(opts={}) o = {:hostname => 'rscript.heroku.com', :package => ''}.merge(opts) @hostname = o[:hostname] @package = o[:package] if @package.length > 0 then jobs_to_methods(@package) init_content_types end end |
Instance Attribute Details
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
8 9 10 |
# File 'lib/rcscript-client.rb', line 8 def doc @doc end |
#package ⇒ Object
Returns the value of attribute package.
9 10 11 |
# File 'lib/rcscript-client.rb', line 9 def package @package end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
8 9 10 |
# File 'lib/rcscript-client.rb', line 8 def result @result end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
8 9 10 |
# File 'lib/rcscript-client.rb', line 8 def text @text end |