Sha256: 3a444e103f6dbd43e94e689d6630c42f73fa48dd9513297bf7be6a2aa6266235
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
module Harvesting module Models class Project < HarvestRecord attributed :id, :name, :code, :is_active, :is_billable, :is_fixed_fee, :bill_by, :hourly_rate, :budget, :budget_by, :budget_is_monthly, :notify_when_over_budget, :over_budget_notification_percentage, :over_budget_notification_date, :show_budget_to_all, :cost_budget, :cost_budget_include_expenses, :fee, :notes, :starts_on, :ends_on, :created_at, :updated_at modeled client: Client def path @attributes['id'].nil? ? "projects" : "projects/#{@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/project.rb |