# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # FieldError Model. class FieldError < BaseModel # TODO: Write general description for this method # @return [String] attr_accessor :field_name # TODO: Write general description for this method # @return [String] attr_accessor :description # A mapping from model property names to API property names. def self.names @_hash = {} if @_hash.nil? @_hash['field_name'] = 'fieldName' @_hash['description'] = 'description' @_hash end def initialize(field_name = nil, description = nil) @field_name = field_name @description = description end # Creates an instance of the object from a hash. def self.from_hash(hash) return nil unless hash # Extract variables from the hash. field_name = hash['fieldName'] description = hash['description'] # Create object from extracted values. FieldError.new(field_name, description) end end end