class ClioClient::Api::Contact

Private Instance Methods

data_klass(attributes) click to toggle source
# File lib/clio_client/api/contact.rb, line 10
def data_klass(attributes)
  accepted_types = %w(Person Company)
  type = attributes["type"] || attributes[:type]
  if accepted_types.include? type
    ClioClient.const_get type
  else
    ClioClient::Contact
  end
end
end_point_url() click to toggle source
# File lib/clio_client/api/contact.rb, line 20
def end_point_url;     'contacts';  end
plural_resource() click to toggle source
# File lib/clio_client/api/contact.rb, line 21
def plural_resource;   'contacts';   end
singular_resource() click to toggle source
# File lib/clio_client/api/contact.rb, line 22
def singular_resource; 'contact';  end