Sha256: 304ebfa06fa7aa57783da7197beafd26abaebf40a7c30390c1b50896c47b45ae

Contents?: true

Size: 820 Bytes

Versions: 3

Compression:

Stored size: 820 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
      :reservation,       # 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

3 entries across 3 versions & 1 rubygems

Version Path
caren-api-0.6.4 lib/caren/event.rb
caren-api-0.6.3 lib/caren/event.rb
caren-api-0.6.2 lib/caren/event.rb