struct

Hwaro::Services::ConversionResult

Inherits JSON::Serializable < Struct < Value < Object

Result of a conversion operation

Constructors

new(success : Bool = true, message : String = "", converted_count : Int32 = 0, skipped_count : Int32 = 0, error_count : Int32 = 0, dry_run : Bool = false, content_error_count : Int32 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content_error_count

The part of error_count caused by unparseable front matter (a run that failed only on those is a content error, not an IO one). Not part of the --json payload.

Source
content_error_count=(content_error_count : Int32)

The part of error_count caused by unparseable front matter (a run that failed only on those is a content error, not an IO one). Not part of the --json payload.

Source
converted_count
Source
converted_count=(converted_count : Int32)
Source
dry_run

True when the run only previewed: converted_count then means "would be converted" and no file was touched.

Source
dry_run=(dry_run : Bool)

True when the run only previewed: converted_count then means "would be converted" and no file was touched.

Source
error_count
Source
error_count=(error_count : Int32)
Source
message
Source
message=(message : String)
Source
skipped_count
Source
skipped_count=(skipped_count : Int32)
Source
success
Source
success=(success : Bool)
Source