Class: RScriptClient

Inherits:
Object
  • Object
show all
Includes:
REXML
Defined in:
lib/rcscript-client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#docObject (readonly)

Returns the value of attribute doc.



8
9
10
# File 'lib/rcscript-client.rb', line 8

def doc
  @doc
end

#packageObject

Returns the value of attribute package.



9
10
11
# File 'lib/rcscript-client.rb', line 9

def package
  @package
end

#resultObject (readonly)

Returns the value of attribute result.



8
9
10
# File 'lib/rcscript-client.rb', line 8

def result
  @result
end

#textObject (readonly)

Returns the value of attribute text.



8
9
10
# File 'lib/rcscript-client.rb', line 8

def text
  @text
end