lib/avvo_api/address.rb in avvo_api-0.1.1 vs lib/avvo_api/address.rb in avvo_api-0.2.0

- old
+ new

@@ -1,9 +1,8 @@ -# Represents an address. One of the following attributes MUST +# Represents an address. The following attribute MUST # be set when using this model: -# -# * doctor_id +# # * lawyer_id # # This model has the following attributes: # # * id @@ -12,13 +11,12 @@ # * city # * state # * postal_code # * latitude # * longitude -# +# class AvvoApi::Address < AvvoApi::Base belongs_to :lawyer - belongs_to :doctor has_many :phones # Returns the 'main' address associated with the passed in # professional. This is usually the address you want to # use. +params+ is a hash of <tt>{:lawyer_id => lawyer.id}</tt> or