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

Inherits:
Struct
  • Object
show all
Defined in:
lib/wcc/contentful/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



5
6
7
# File 'lib/wcc/contentful/exceptions.rb', line 5

def error
  @error
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



5
6
7
# File 'lib/wcc/contentful/exceptions.rb', line 5

def path
  @path
end

Instance Method Details

#to_sObject



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

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