Class: Invoicexpress::Models::Schedule

Inherits:
CoreSchedule show all
Includes:
BaseSchedule
Defined in:
lib/invoicexpress/models/schedule.rb

Instance Method Summary collapse

Methods included from BaseSchedule

included

Methods inherited from BaseModel

#initialize

Constructor Details

This class inherits a constructor from Invoicexpress::Models::BaseModel

Instance Method Details

#to_core_scheduleObject

creates a object that can be used in create/update by the invoicexpress API



65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/invoicexpress/models/schedule.rb', line 65

def to_core_schedule()
  Invoicexpress::Models::CoreSchedule.new(
    :id=>self.id,
    :start_date=>self.start_date,
    :end_date=>self.end_date,
    :create_back=>self.create_back,
    :schedule_type=>self.schedule_type,
    :interval=>self.interval,
    :send_to_client=>self.send_to_client,
    :description=>self.description,
    :invoice_template=>self.invoice_template
  )
end