Sha256: 0d08dd6e3be3e35b981edc1d8177daf904938b3df377f12cb70af0e9ab20ddb3

Contents?: true

Size: 822 Bytes

Versions: 2

Compression:

Stored size: 822 Bytes

Contents

# Constants representing the various values for +phone_type_id+ in AvvoApi::Phone
module AvvoApi::PhoneType

  # There is no type specified for this number
  UNKNOWN = 1

  # This is an office number
  OFFICE = 2

  # This is a fax number
  FAX = 3

  # This is a mobile number
  MOBILE = 4
end

# Represents a phone number tied to an address. The following
# attributes MUST be set when using this model:
#
# * lawyer_id
# * address_id
#
# This model has the following attributes:
#
# * id
# * phone_number:  The phone number. Will be normalized by Avvo.
# * phone_type_id: The type of the phone number, as an AvvoApi::PhoneType
#   constant. (Only applicable when creating or updating records)
# * phone_type:    A string representation of the phone type
#
class AvvoApi::Phone < AvvoApi::Base
  belongs_to :address
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
avvo_api-0.2.1 lib/avvo_api/phone.rb
avvo_api-0.2.0 lib/avvo_api/phone.rb