Class: PDFire::Conversion
Defined Under Namespace
Classes: Result
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#finished_at ⇒ Object
readonly
Returns the value of attribute finished_at.
-
#initialized_at ⇒ Object
readonly
Returns the value of attribute initialized_at.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #bytes ⇒ Object
-
#initialize(initialized_at, finished_at, status, error, result) ⇒ Conversion
constructor
A new instance of Conversion.
Methods inherited from Result
Constructor Details
#initialize(initialized_at, finished_at, status, error, result) ⇒ Conversion
Returns a new instance of Conversion.
8 9 10 11 12 13 14 |
# File 'lib/conversion.rb', line 8 def initialize(initialized_at, finished_at, status, error, result) @initialized_at = initialized_at @finished_at = finished_at @status = status @error = error @result = result end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
6 7 8 |
# File 'lib/conversion.rb', line 6 def error @error end |
#finished_at ⇒ Object (readonly)
Returns the value of attribute finished_at.
6 7 8 |
# File 'lib/conversion.rb', line 6 def finished_at @finished_at end |
#initialized_at ⇒ Object (readonly)
Returns the value of attribute initialized_at.
6 7 8 |
# File 'lib/conversion.rb', line 6 def initialized_at @initialized_at end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/conversion.rb', line 6 def result @result end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/conversion.rb', line 6 def status @status end |
Instance Method Details
#bytes ⇒ Object
16 17 18 |
# File 'lib/conversion.rb', line 16 def bytes() HTTParty.get(self.result.url).body.bytes end |