Sha256: 3be3bae7ea82be5b2639dbaba93ef6c9b0ceeb841042aa7586d1460ccdddf1dc
Contents?: true
Size: 572 Bytes
Versions: 1
Compression:
Stored size: 572 Bytes
Contents
module Harvesting module Models class Contact < HarvestRecord attributed :id, :title, :first_name, :last_name, :email, :phone_office, :phone_mobile, :fax, :created_at, :updated_at modeled client: Client def path @attributes['id'].nil? ? "contacts" : "contacts/#{@attributes['id']}" end def to_hash { client_id: client.id }.merge(super) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
harvesting-0.3.0 | lib/harvesting/models/contact.rb |