Sha256: ff6ab97fcad5e947119e13963eb7778a50fcbd39d0d0baf989bc260d7178ad77

Contents?: true

Size: 933 Bytes

Versions: 10

Compression:

Stored size: 933 Bytes

Contents

# frozen_string_literal: true

require 'happymapper'
require_relative 'node'
require_relative './location_start_time'
require_relative './location_end_time'
require_relative './address'
require_relative './meeting_type'
require_relative './helper/normalized_string'

module ForwardCalendar
  class Location < Node
    include HappyMapper
    tag 'eventLocation'

    has_one :start_time, LocationStartTime, tag: 'locationStartTime', xpath: './'
    has_one :end_time, LocationEndTime, tag: 'locationEndTime', xpath: './'
    has_one :address, Address, tag: 'address', xpath: './'
    has_many :meeting_types_offered, MeetingType, tag: 'meetingType'

    element :id, Integer, tag: 'locationID'
    element :name, String, tag: 'locationEventName'
    element :status, Helper::NormalizedString, tag: 'locationStatus'
    element :start_date, Date, tag: 'locationStartDate'
    element :end_date, Date, tag: 'locationEndDate'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
forward-calendar-0.9.0 lib/forward_calendar/location.rb
forward-calendar-0.8.2 lib/forward_calendar/location.rb
forward-calendar-0.8.1 lib/forward_calendar/location.rb
forward-calendar-0.8.0 lib/forward_calendar/location.rb
forward-calendar-0.7.1 lib/forward_calendar/location.rb
forward-calendar-0.7.0 lib/forward_calendar/location.rb
forward-calendar-0.6.1 lib/forward_calendar/location.rb
forward-calendar-0.6.0 lib/forward_calendar/location.rb
forward-calendar-0.5.0 lib/forward_calendar/location.rb
forward-calendar-0.4.0 lib/forward_calendar/location.rb