Class: Seo::LinkSanitizer::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/seo/link_sanitizer.rb

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(out: nil, status: nil, error: nil) ⇒ Result

Returns a new instance of Result.



15
# File 'app/services/seo/link_sanitizer.rb', line 15

def initialize(out: nil, status: nil, error: nil) = super

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



14
15
16
# File 'app/services/seo/link_sanitizer.rb', line 14

def error
  @error
end

#outObject (readonly)

Returns the value of attribute out

Returns:

  • (Object)

    the current value of out



14
15
16
# File 'app/services/seo/link_sanitizer.rb', line 14

def out
  @out
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



14
15
16
# File 'app/services/seo/link_sanitizer.rb', line 14

def status
  @status
end