Class: Pdf::Compressor::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/pdf/compressor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result: nil, message: nil, input_path: nil, output_path: nil, output_blob: nil) ⇒ Result

Returns a new instance of Result.



10
# File 'app/services/pdf/compressor.rb', line 10

def initialize(result: nil, message: nil, input_path: nil, output_path: nil, output_blob: nil) = super

Instance Attribute Details

#input_pathObject (readonly)

Returns the value of attribute input_path

Returns:

  • (Object)

    the current value of input_path



9
10
11
# File 'app/services/pdf/compressor.rb', line 9

def input_path
  @input_path
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



9
10
11
# File 'app/services/pdf/compressor.rb', line 9

def message
  @message
end

#output_blobObject (readonly)

Returns the value of attribute output_blob

Returns:

  • (Object)

    the current value of output_blob



9
10
11
# File 'app/services/pdf/compressor.rb', line 9

def output_blob
  @output_blob
end

#output_pathObject (readonly)

Returns the value of attribute output_path

Returns:

  • (Object)

    the current value of output_path



9
10
11
# File 'app/services/pdf/compressor.rb', line 9

def output_path
  @output_path
end

#resultObject (readonly)

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



9
10
11
# File 'app/services/pdf/compressor.rb', line 9

def result
  @result
end