Sha256: 6d084ce1b9ead36b9e9f82d262224f066b1285543925be3a9eec87606232c121

Contents?: true

Size: 830 Bytes

Versions: 5

Compression:

Stored size: 830 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 './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: './'

    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

5 entries across 5 versions & 1 rubygems

Version Path
forward-calendar-0.3.0 lib/forward_calendar/location.rb
forward-calendar-0.2.0 lib/forward_calendar/location.rb
forward-calendar-0.1.2 lib/forward_calendar/location.rb
forward-calendar-0.1.1 lib/forward_calendar/location.rb
forward-calendar-0.1.0 lib/forward_calendar/location.rb