Sha256: 20b08a2f35c7b0d8a5731891b00f2d61654b15217c3848ce6391f3fd9b955bbb

Contents?: true

Size: 784 Bytes

Versions: 26

Compression:

Stored size: 784 Bytes

Contents

# This class is just an intermediate for exporting events to Caren.
# It has the correct format for exports.
class Caren::Event < Caren::Base

  def self.keys
    [ :external_id,       # String Unique identifying string (Your event id)
      :name,              # String
      :comment,           # String
      :start,             # String (14:00)
      :duration,          # Integer
      :valid_from,        # Date
      :valid_to,          # Date
      :person_first_name, # String
      :person_last_name,  # String
      :person_male,       # Boolean
      :external_person_id,# String (Your person id)
      :source             # String (remote_schedule,remote_realisation)
    ] + super
  end

  def self.array_root
   :events
  end

  def self.node_root
   :event
  end

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
caren-api-0.6.1 lib/caren/event.rb
caren-api-0.6.0 lib/caren/event.rb
caren-api-0.5.20 lib/caren/event.rb
caren-api-0.5.19 lib/caren/event.rb
caren-api-0.5.18 lib/caren/event.rb
caren-api-0.5.17 lib/caren/event.rb
caren-api-0.5.16 lib/caren/event.rb
caren-api-0.5.15 lib/caren/event.rb
caren-api-0.5.14 lib/caren/event.rb
caren-api-0.5.13 lib/caren/event.rb
caren-api-0.5.12 lib/caren/event.rb
caren-api-0.5.10 lib/caren/event.rb
caren-api-0.5.9 lib/caren/event.rb
caren-api-0.5.8 lib/caren/event.rb
caren-api-0.5.7 lib/caren/event.rb
caren-api-0.5.6 lib/caren/event.rb
caren-api-0.5.5 lib/caren/event.rb
caren-api-0.5.4 lib/caren/event.rb
caren-api-0.5.3 lib/caren/event.rb
caren-api-0.5.2 lib/caren/event.rb