Sha256: 64e240e3edf32f8dca20307f8510dd02a93d457138f4b1bdc61712c823b63176
Contents?: true
Size: 763 Bytes
Versions: 9
Compression:
Stored size: 763 Bytes
Contents
module TicketMaster::Provider module Tester # This is the Project class for the Tester provider class Project < TicketMaster::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
9 entries across 9 versions & 1 rubygems