Class: Tika::Result

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/tika/result.rb

Direct Known Subclasses

JSONResult, TextResult

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output, error, status) ⇒ Result

Returns a new instance of Result.



13
14
15
# File 'lib/tika/result.rb', line 13

def initialize(output, error, status)
  @output, @error, @status = output, error, status
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



9
10
11
# File 'lib/tika/result.rb', line 9

def error
  @error
end

#outputObject (readonly)

Returns the value of attribute output.



9
10
11
# File 'lib/tika/result.rb', line 9

def output
  @output
end

#statusObject (readonly)

Returns the value of attribute status.



9
10
11
# File 'lib/tika/result.rb', line 9

def status
  @status
end

Instance Method Details

#renderObject



17
18
19
# File 'lib/tika/result.rb', line 17

def render
  output
end