Class: WCC::Contentful::App::ValidationError::Message

Inherits:
Struct
  • Object
show all
Defined in:
lib/wcc/contentful/app/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



7
8
9
# File 'lib/wcc/contentful/app/exceptions.rb', line 7

def error
  @error
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



7
8
9
# File 'lib/wcc/contentful/app/exceptions.rb', line 7

def path
  @path
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/wcc/contentful/app/exceptions.rb', line 9

def to_s
  "#{path}: #{error}"
end