Sha256: 85063b972b2287bbf4872db888cb69346db977f0523b606d96d32a9aed234bd8
Contents?: true
Size: 759 Bytes
Versions: 5
Compression:
Stored size: 759 Bytes
Contents
module TaskMapper::Provider module Tester # This is the Project class for the Tester provider class Project < TaskMapper::Provider::Base::Project # You should define @system and @system_data here. # The data stuff is just to initialize fake data. In a real provider, you would use the API # to grab the information and then initialize based on that info. # @system_data would hold the API's model/instance for reference def initialize(*options) data = {:id => rand(1000).to_i, :name => 'Tester', :description => 'Mock!-ing Bird', :created_at => Time.now, :updated_at => Time.now} @system = :tester super(data.merge(options.first || {})) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems