Class: Zaala::API::FieldViolation

Inherits:
Object
  • Object
show all
Defined in:
lib/zaala/api/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field, description) ⇒ FieldViolation

Returns a new instance of FieldViolation.



7
8
9
10
# File 'lib/zaala/api/error.rb', line 7

def initialize(field, description)
  @field = field
  @description = description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



5
6
7
# File 'lib/zaala/api/error.rb', line 5

def description
  @description
end

#fieldObject (readonly)

Returns the value of attribute field.



5
6
7
# File 'lib/zaala/api/error.rb', line 5

def field
  @field
end