Class: Wufoo::Submission::FieldError

Inherits:
Object
  • Object
show all
Defined in:
lib/wufoo/submission.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ FieldError

Returns a new instance of FieldError.



74
75
76
77
78
# File 'lib/wufoo/submission.rb', line 74

def initialize(attrs)
  @field_id = attrs['field_id']
  @code     = attrs['error_code']
  @message  = attrs['error_message']
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



72
73
74
# File 'lib/wufoo/submission.rb', line 72

def code
  @code
end

#field_idObject

Returns the value of attribute field_id.



72
73
74
# File 'lib/wufoo/submission.rb', line 72

def field_id
  @field_id
end

#messageObject

Returns the value of attribute message.



72
73
74
# File 'lib/wufoo/submission.rb', line 72

def message
  @message
end