Class: Postnhost::ServiceResult

Inherits:
Struct
  • Object
show all
Defined in:
app/services/postnhost/service_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



2
3
4
# File 'app/services/postnhost/service_result.rb', line 2

def errors
  @errors
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



2
3
4
# File 'app/services/postnhost/service_result.rb', line 2

def status
  @status
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



2
3
4
# File 'app/services/postnhost/service_result.rb', line 2

def value
  @value
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'app/services/postnhost/service_result.rb', line 3

def success?
  errors.blank?
end