class Pina::Contact

Public Class Methods

find_by(hash) click to toggle source
# File lib/pina/contact.rb, line 17
def find_by(hash)
  response = where(hash)

  return response.items.first if response.is_a? Pina::Collections::Contact

  response
end
new(params = nil) click to toggle source
# File lib/pina/contact.rb, line 13
def new(params = nil)
  Pina::Models::Contact.new(params)
end