Class: Harvest::Expense

Inherits:
BaseModel show all
Includes:
HappyMapper
Defined in:
lib/harvest/expense.rb

Instance Method Summary collapse

Methods inherited from BaseModel

#==, api_path, #attributes=, #initialize, #to_i, #to_xml

Constructor Details

This class inherits a constructor from Harvest::BaseModel

Instance Method Details

#spent_at=(date) ⇒ Object



15
16
17
# File 'lib/harvest/expense.rb', line 15

def spent_at=(date)
  @spent_at = (String === date ? Time.parse(date) : date)
end