Sha256: 89c2a3930428d718efe5d5c63647b11105e460af30f52bba0a25d9b38ebb85c5

Contents?: true

Size: 1.14 KB

Versions: 13

Compression:

Stored size: 1.14 KB

Contents

# 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

Version data entries

13 entries across 10 versions & 1 rubygems

Version Path
bandwidth-sdk-2.2.2 lib/bandwidth/messaging_lib/messaging/models/field_error.rb
bandwidth-sdk-2.2.1 lib/bandwidth/messaging_lib/messaging/models/field_error.rb
bandwidth-sdk-2.2.0 lib/bandwidth/messaging_lib/messaging/models/field_error.rb
bandwidth-sdk-2.1.1 lib/bandwidth/messaging_lib/messaging/models/field_error.rb
bandwidth-sdk-2.1.0 lib/bandwidth/messaging_lib/messaging/models/field_error.rb
bandwidth-sdk-2.0.0 lib/bandwidth/messaging_lib/messaging/models/field_error.rb
bandwidth-sdk-1.0.2 lib/bandwidth/messaging_lib/messaging/models/field_error.rb
bandwidth-sdk-1.0.1 lib/bandwidth/voice_lib/voice/models/field_error.rb
bandwidth-sdk-1.0.1 lib/bandwidth/messaging_lib/messaging/models/field_error.rb
bandwidth-sdk-1.0.0 lib/bandwidth/messaging_lib/messaging/models/field_error.rb
bandwidth-sdk-1.0.0 lib/bandwidth/voice_lib/voice/models/field_error.rb
bandwidth-sdk-1.0.0.pre lib/bandwidth/voice_lib/voice/models/field_error.rb
bandwidth-sdk-1.0.0.pre lib/bandwidth/messaging_lib/messaging/models/field_error.rb